How can I use .dll to Assembly?
undy0602
Member Posts: 67
Hello All,
I have to use .dll that is created by vendor company on NAV2016. I have only .dll file and dont have any source
I tried to create strong name for this .dll
C:\Program Files\Microsoft Dynamics NAV\90\RoleTailored Client\Add-ins>sn -k Name.snk
Key pair written to Name.snk
then want to create Public Token Key But it cannot and appears below message
C:\Program Files\Microsoft Dynamics NAV\90\RoleTailored Client\Add-ins>sn -T Name.dll
Name.dll does not represent a strongly named assembly
Whats going on here? How can I use this .dll by Assembly on NAV?
Regards,
Undy
I have to use .dll that is created by vendor company on NAV2016. I have only .dll file and dont have any source
I tried to create strong name for this .dll
C:\Program Files\Microsoft Dynamics NAV\90\RoleTailored Client\Add-ins>sn -k Name.snk
Key pair written to Name.snk
then want to create Public Token Key But it cannot and appears below message
C:\Program Files\Microsoft Dynamics NAV\90\RoleTailored Client\Add-ins>sn -T Name.dll
Name.dll does not represent a strongly named assembly
Whats going on here? How can I use this .dll by Assembly on NAV?
Regards,
Undy
0
Answers
-
You can use it as an assembly to access it in code but if it's a control add-in the assembly needs to be signed. So if it's the last option you need the source and sign it.
If it's just to use internal logic in code you don't need the public key and you don't have to register it in the control add-in table. Just add a variable of type 'dotnet' and look up the assembly in the server-tab.0 -
Can I use .dll by Automation Library? How can I do it?0
-
-
thanks EvR,
My .dll file is located on
- C:\Program Files\Microsoft Dynamics NAV\90\RoleTailored Client\Add-ins
- C:\Program Files (x86)\Microsoft Dynamics NAV\90\Service\Add-ins
But it cant show on my Assembly List. How it show?
Regards,
Undy0 -
I would try deleting it from the RTC (client) directory.
Make sure it is in the Add-ins directory of the NAV service you connect to be default. Close all clients on your machine, restart the service (if all else fails) and then (if its a valid .net assembly) it should be in the list. And if you copied it from another machine, make sure the dll file itself is not locked/protected by windows (can't remember the exact term) by opening the file properties in your explorer, its on the main tab if it's locked)0 -
Thank you very much your kindly replies EvR,
I have already created unmanaged .dll. It isn`t strongly name assembly. I tried to sign strong name below guide
https://msdn.microsoft.com/en-us/library/xc31ft41(v=vs.110).aspx
https://msdn.microsoft.com/en-us/library/6f05ezxy(v=vs.110).aspx
But it appears again Name.dll does not represent strongly name assembly.
Can I create strong name for this unmanaged assembly?
Best Regards,
Undy
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.7K 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
- 324 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

