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
)
Comments
Visual add-ins cannot be used from server side. Only client side. On client side you can also use the old automation dll's.
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.
And this problem was solved by restarting the NAV Server service.