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 ?
0
Answers
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.
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)