Connect to dotnet datatype in Dynamics NAV 2016 (64 bit) client side
Per1008
Member Posts: 10
I upgraded a customer database from NAV 2015 to NAV 2016.
In NAV 2015, Chilkat dll (32 bit) client side was used, and this works fine.
After upgrading to NAV in 2016, I removed old Chilkat 32 bit dll from folder "Microsoft Dynamics NAV / 90 / Add-ins" and new 64 bit dll awas copied to the folder (.NET 4.5), since it is not possible to load a 32-bit dll from a 64-bit NAV 2016 client.
Now I have two problems:
1) When I have to choose my 64 bit Chilkat dll, the old 32 bit dll is still displayed in Assembly List (although it was removed). I choose my 64 bit dll, but it is the 32-bit DLL there will be chosen. The code will compile, but when I execute the code, I get the error: "Can not load an instance of following .NET Framework object: assembly ChilkatDotNet45 ..."
2) I copy Chilkat 64 bit dll to Add-ins on a machine that have not used these dll. From the development environment, when I choose this Chilkat 64 bit dll, I get the error: "Could not load type 'ChilkatDotNet45 ..."
I get the same error when load of Chilkat dll type .NET 4.6
Any suggestions ?
In NAV 2015, Chilkat dll (32 bit) client side was used, and this works fine.
After upgrading to NAV in 2016, I removed old Chilkat 32 bit dll from folder "Microsoft Dynamics NAV / 90 / Add-ins" and new 64 bit dll awas copied to the folder (.NET 4.5), since it is not possible to load a 32-bit dll from a 64-bit NAV 2016 client.
Now I have two problems:
1) When I have to choose my 64 bit Chilkat dll, the old 32 bit dll is still displayed in Assembly List (although it was removed). I choose my 64 bit dll, but it is the 32-bit DLL there will be chosen. The code will compile, but when I execute the code, I get the error: "Can not load an instance of following .NET Framework object: assembly ChilkatDotNet45 ..."
2) I copy Chilkat 64 bit dll to Add-ins on a machine that have not used these dll. From the development environment, when I choose this Chilkat 64 bit dll, I get the error: "Could not load type 'ChilkatDotNet45 ..."
I get the same error when load of Chilkat dll type .NET 4.6
Any suggestions ?
0
Answers
-
You already properly did this but:
1.) Delete the dll (both x86 & x64) from Server and Clients Add-In Folders to make sure everythings clean.
2.) Copy the dll only to the Server Add-In Folder
3.) Restart Service
4.) Try creating your dotnet Variable again (use the tab "Server")
5.) Try executing your code again.Austrian NAV/BC Dev0 -
Yes I have - I have even restarted the server, but still I can see the dll, witch dos not exist on the server :-(0
-
Did you register your DLL when you first deploy it? If so, try unregistering it.Austrian NAV/BC Dev0
-
No, the dll is not com enabled. I just added the dll to "C:\Program Files (x86)\Microsoft Dynamics NAV\90\RoleTailored Client\Add-ins" and connected to this dll from NAV2015.
After upgrade to NAV2016, I had to remove the dll (delete the dll), and replace it with a 64-bit dll
(see attached file).
Problem 2
It seems, that code compiled with a Amd64 Prcessor Architecture not will run together with NAV2016
(it is not possible to load the dll)0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K 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
- 320 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