Connecting my own dll with data type dotnet from NAV 2013

Per1008Per1008 Member Posts: 10
edited 2013-06-28 in NAV Three Tier
I have developed a dll (com object) that are called from NAV 2009 as an Automation. Since it is no longer possible to call a com object from the server side in NAV 2013, I need a link that describes step by step:
1) what should be done in Visual Studio, now that it is not a com enabled dll
2) what should be done in NAV, in order to connect this dll with data type DotNet

I have tried me with http://msdn.microsoft.com/en-us/library/dd983804 (v = nav.70). Aspx # CreatingAddIn, but get the error: "Can not create an instance of the following. NET Framework object xxx "because PuclicKey Token = null
(although I have called sn.exe and put data in Table Client Add-in).

Therefore, a link to a little example would be nice!
(the link, that I can't find :D)

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    If your old dll is already developed in C# it is most often directly usable via dotnet interop. Place the DLL in the Add-In folder and you can use it.

    Visual add-ins cannot be used from server side. Only client side. On client side you can also use the old automation dll's.
  • Per1008Per1008 Member Posts: 10
    The dll is only called server side.
    I solved the problem by calling gacutil.exe where I registered dll'et in GAC.
    But it lead me only to the next problem:
    My dll call two other dll's, which can no longer be called (has lost the reference).
    Same problem, if I register these two dll's in GAC.
  • Per1008Per1008 Member Posts: 10
    ](*,)

    And this problem was solved by restarting the NAV Server service.
Sign In or Register to comment.