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.
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.