Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: Deployment issue
gthrower

From: Colorado Springs, CO USA
Posts: 9
Member Since: 12/06/02
posted December 6, 2002 4:34 PM

I have just written a console application in VB.Net which works great on my machine where I've installed PowerTCP Ftp for .Net. The issue is that when I install this application on another machine it will not run. I get the following in cordbg.

Warning: couldn't load symbols for c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll
[thread 0xd8] Thread created.
Unable to determine existence of prolog, if any
[thread 0xd9] Thread created.
[thread 0x74] Thread created.
[thread 0xd8] Unhandled exception generated: (0x00ece124) <System.TypeInitializationException>
 _typeName=(0x00ece168) "ConsoleApplication1.netFTPSend"
 _className=<null>
 _exceptionMethod=<null>
 _exceptionMethodString=<null>
 _message=(0x00ece3f0) "The type initializer for "ConsoleApplication1.netFTPSend" threw an exception."
 _innerException=(0x00ece07c) <System.ComponentModel.LicenseException>
 _helpURL=<null>
 _stackTrace=(0x00ece4ec) array with dims=[12]
 _stackTraceString=<null>
 _remoteStackTraceString=<null>
 _remoteStackIndex=0x00000000
 _HResult=0x80131534
 _source=<null>
 _xptrs=0x00000000
 _xcode=0xe0434f4d

Thread 0xd8 R --- Class initialization ---

This leads me to believe I have a licensing issue. I followed the help instructions for adding a licenses.licx file to my project and I still get the same error. What am I missing. This shouldn't be this hard.

Gary Thrower
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted December 9, 2002 9:49 AM

Hi,
If it was a licenses.licx problem, it would fail to run on your development machine as well.
Make sure to re-build the project on the machine with the license. To deploy, all that is required is to copy the contents of the bin folder (including the exe and dll) to the target machine. Make sure Copy Local is true for the dll, and that the name of the exe does not change after compilation.
Hope it helps,
-ken
gthrower

From: Colorado Springs, CO USA
Posts: 9
Member Since: 12/06/02
posted December 9, 2002 11:10 AM

Still having the same problem. Any other suggestions?

Gary Thrower
gthrower

From: Colorado Springs, CO USA
Posts: 9
Member Since: 12/06/02
posted December 9, 2002 4:54 PM

Okay I discovered the problem. I followed the instructions in the documentation for creating the licenses.licx file. In these instructions it says to right click on the solution name, it appears that what needs to happen is that you should right click on the project name so that the file is a resource for the project instead of the solution. When I moved the licenses.licx file from the solution down to the project it started working.

Gary M. Thrower
Columbine Capital Services, Inc.

PS. Here is the section from the documentation.
------------------------------------------------
Note: If you are creating the Ftp component by dragging it from the toolbox, you do not need to create a licenses.licx file, as one will be created by the environment. These steps apply only if you are using the Ftp component as a reference, or from a non-Visual Studio .NET environment.

To create a licenses.licx file, use the following steps.

Start a new application in Visual Studio .NET and add the Ftp component as a reference.
In the Solution Explorer, right-click the solution name, choose Add, then Add New Item.
From the resulting dialog box, choose Text File and name the file "licenses.licx". Click Open.
Type the following in the licenses.licx file

Dart.PowerTCP.Ftp.Ftp, Dart.PowerTCP.Ftp 

and save the file. You should now be able to compile and run a project that uses the Ftp component as a reference.


Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted December 10, 2002 10:38 AM

Thanks for pointing out the doc bug. We'll get it fixed for all future product releases.
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX