Connecting my own dll with data type dotnet from NAV 2013
Per1008
Member Posts: 10
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
)
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
0
Comments
-
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.0 -
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.0 -
](*,)
And this problem was solved by restarting the NAV Server service.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
