| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Distribution |
| User47 Posts: 1 Member Since: 05/08/02 |
posted May 8, 2002 10:18 AM I have written a .net service application. I have successfully registered and it works great on my development machine. However, when I try to install my service on the target machine, it generates an unhandled exception when it tries to start. I have removed all references to the FTP objects and tried again and it runs successfully so I think that it is a licensing issue with the FTP class. How can I get it to run correctly on the target machine? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 8, 2002 11:21 AM Hi, Are you sure the component was licensed when you added it to your project? Have you included Dart.PowerTcp.Tcp.dll and Dart.PowerTcp.Ftp.dll in your distribution? Thanks, -ken K M Drake Dart Tech Support |
| User42 Posts: 3 Member Since: 05/08/02 |
posted May 8, 2002 1:02 PM Yes... I licensed it before I added it to the project. Both the TCP and FTP are listed as references and both files (.dll) are in the same subdirectory as my .exe. on the target machine. The service installs correctly then bombs when it is started. Any ideas? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 8, 2002 3:01 PM Hi, Ok, if you compile and distribute our samples, do they (and other non-service apps) function correctly? How have you created the Service? Using the .NET Service class? I know there are some problems with services compiled in .NET - for example, you cannot use TextBoxes. How did you instantiate the control? Dynamically? If so, did you create a licx file, as described in the help? Thanks, -ken K M Drake Dart Tech Support |
| User42 Posts: 3 Member Since: 05/08/02 |
posted May 8, 2002 3:42 PM I compiled the xferman sample and ran it fine on the target machine. My class Inherits from System.ServiceProcess.ServiceBase... There is no user interface for a service. I instantiate it as:Private objFTP As New Ftp() with an imports of: Imports Dart.PowerTCP. I did notice that the licx file that I created is not like what is listed in the example. Mine looks like: Dart.PowerTCP.Ftp, Dart.PowerTCP.Ftp I noticed the file in the example has an entry for culture and publickeytoken... Am I missing something there? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 9, 2002 10:15 AM Hi, No, your licx is fine as you describe it. I just created a simple service using our Interop service control and the Ftp.Net component (instantiated dynamically). When I installed the service on another, unlicensed machine, and started it from the SCM, it worked fine. I suggest starting with an extremely simple service that implements Ftp.Net, see if you can get that working, and then go from there. -ken K M Drake Dart Tech Support |
| User42 Posts: 3 Member Since: 05/08/02 |
posted May 9, 2002 11:22 AM I tried that and it worked! I then went back to my application, deleted the license file in the solution and added it again and it was successful. Thanks! |
| myguddy From: Seoul, AL South Korea Posts: 2 Member Since: 09/16/02 |
posted September 16, 2002 9:04 AM Hi ! I have a same problem here. I created C/S application with PowerTCP .Net I have the component licensed surly and I inserted "license.licx" file but the application installed has a license error. I tried the other ways but i couldn't get solve this problem. I just add license.licx file and complie. The assembly using this component has strong name which is only one thing different from other. Any clue? please help me |
Jon Belanger![]() From: Rome, NY USA Posts: 310 Member Since: 06/10/02 |
posted September 16, 2002 10:14 AM Could you detail exactly how you are using our controls and how your project is structured. Also, I'm not sure what you mean by the last sentence. Thanks. |
| myguddy From: Seoul, AL South Korea Posts: 2 Member Since: 09/16/02 |
posted September 16, 2002 8:57 PM The component is in utility assembly which is referenced in other EXE application. This is how I programmed, Once you click button, Event handler called component of the other assembly referenced. We use FTP functions in many other modules under the same solution, therefore we make a classlibrary including PowerFTP component. The liscense file is included in the classlibrary project as embedded resource and Install project. The class library has strong name in order to be in global assembly cache. If you have an example of install project for Window Application and any material to say how in step by step, please e-mail me. I will appreicate it. PS: After I register, I see "FTP Trial for .NET" key in registry. Is that correct? And I copy it to the other computer to install it in, It works with Liscense Message. Seung Il Han guddy@kcc.co.kr,myguddy@msn.com |
Jon Belanger![]() From: Rome, NY USA Posts: 310 Member Since: 06/10/02 |
posted September 17, 2002 8:54 AM Hello, When you are creating an application in .NET that uses an assembly you create that in turn uses one of our components you will need to add the licenses.licx file to your application project, not the assembly project, or both. The point is, you will get the licensing error if you don't include the line: Dart.PowerTCP.Tool.Class, Dart.PowerTCP.Tool in the application's licenses.licx. Hope that helps solve your problem. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|