Login  
Search All Forums
Dart Home | Custom Development Reply | General Questions Topics | Forums   
AuthorForum: General Questions
Topic: SFTP Not working on a server
bsardak

From: Cambridge, MA USA
Posts: 8
Member Since: 03/11/11
posted April 21, 2011 1:16 PM

I am using Dart.SSH for sftp file transfer. I have installed license on my developer pc(working fine) however when I move my project .exe to server it won't work. it thew and exception: The type initializer . Why?
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted April 21, 2011 1:44 PM

Hello,

Can you please provide the full error message?

Did you distribute the component dll along with your exe?
bsardak

From: Cambridge, MA USA
Posts: 8
Member Since: 03/11/11
posted April 21, 2011 1:50 PM

Here is what I have
Developer pc(project)
1.Reference to Dart.SSH.dll in project
2.licenses.licx file in project (empty)
In Code:
 Try
   Login = New SshLoginData(My.Settings.SFTPServer, My.Settings.SFTPPort, My.Settings.SFTPUsername, My.Settings.SFTPPassword, "")
    Catch ex As Exception
      ...

server:
1.myProjectname.licenses
2.Dart.SSH.dll

Exception:
MESSAGE: The type initializer for 'myProjectName' threw an exception.

Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted April 21, 2011 2:43 PM

Hello,

The licenses.licx must have an entry for the control, or else the licensing information will not be compiled into your executable. Does the inner exception indicate that an entry is missing from your licenses.licx? You need to add the entry necessary for the component you are using (probably "Dart.Ssh.Sftp, Dart.Ssh").

Please examine the help documentation "Licensing and Trial Operation" help topic for more information on what the licenses.licx file should contain, and other distribution information.

You shouldn't need to distribute any .licenses file (unless it's necessary for some other component you are using); the Dart.SSH.dll should be the only file that is necessary to distribute with your application to use our component.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted April 21, 2011 3:40 PM

Hello,

When you said 'working fine' in your first post, do you mean that you were able to compile and run your project that doesn't contain a licenses.licx with a correct entry, without any errors? If so, can you let me know what your project type is?
Reply | General Questions Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX