Hoping someone have messed about with this ftp-library that I've been using quite a few times in the past but never with NAV 201x.
I've copied the ChillkatDotNet45.dll into both Add-ins folders (server/client) and after a service restart the DLL lists on the Dynamics NAV tab of the Assembly List from where I'm assigning the SubType to my FTP variable. So far so good.
01> CLEAR(FTP);
02> FTP.UnlockComponent('...my_key...');
On my first attempt to invoke a method call (line 02), I get this error :
"A DotNet variable has not been instantiated. Attempting to call Chilkat.Ftp2.UnlockComponent in CodeUnit ...."
So i did some searching and found
this article explaining that I need to use a constructor to instantiate the assembly before i can start using its methods. Allright then.
The assembly offers me two selections under the 'Constructors' section in the C/AL Symbol Menu. Both named 'Ftp2'.
01> CLEAR(FTP);
02> FTP := FTP.Ftp2();
03> FTP.UnlockComponent('...my_key...');
This time the Constructor assignment fails (line 02) with :
"Cannot load an instance of the following .NET Framework object: assembly.ChilkatDotNet45, Version=9.5.0.62, Culture=neutral, PlublicKeyToken=eb5fc1fc52ef09bd."
I have no clue if this is the result of a deficient assembly or a lack of understanding on my part.
Any assistance is welcome.
Comments
There's only one service-instance pointing to the database.
Client has :
C:\Program Files (x86)\Microsoft Dynamics NAV\90\RoleTailored Client\Add-ins\ChilkatDotNet45.dll
Server has :
C:\Program Files\Microsoft Dynamics NAV\90\Service\Add-ins\ChilkatDotNet45.dll
Sorry but check/remove .. what? I'm guessing you're not talking about the 'read-only' and 'Hidden' attributes or even the four additional attributes on the advanced page regarding archiving and compression?
I would be curious to see if anyone else (could be bothered) trying this out got the same issue.
The assembly can be downloaded from this page.
This did the trick - Thank's a lot Kishorm.