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: Simple FTP Sample...
hpdramstad
hpdramstad@hotmail.com

From: Nesodden, Norway
Posts: 5
Member Since: 02/20/06
posted February 20, 2006 7:24 PM

Could somebody give me a very simple FTP sample that I dould try out, and a step by step list of what I need to do on my remote web server (hosted server solution) in order to make it work (make it very simple as an "Idiots guide to...").

Tried to copy the ListView sample to my hosted server, but did not manage to make it run (tried to edit Web.config until it worked, but run into more problems).

Thanks for any help on this.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 20, 2006 7:45 PM

All of the samples we provide are what we consider to be "simple". Perhaps I could help if you could provide the exact error messages and the details of what you have done so far in your attempts to resolve them?
hpdramstad
hpdramstad@hotmail.com

From: Nesodden, Norway
Posts: 5
Member Since: 02/20/06
posted February 21, 2006 5:25 PM

This is what I did,

1) Copied "ListView" directory (with files and subdirectories) from "CSharp ASP.NET" to my hosted web service (also copied the content of the bin subdirectory to the hosted root bin directory)
2) I then tried to access to login.aspx file and got the following error,

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 36:      "Passport" and "None"
Line 37:   -->
Line 38:   <authentication mode="Windows" />
Line 39:
Line 40:   <!-- APPLICATION-LEVEL TRACE LOGGING
Source File: d:\Customers\user1097423\www\editor\web.config  Line: 38

3) I then started to modify the web.config file, but got a bit lost and ended with new error messages.

Please help - what to do, Thanks?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 21, 2006 5:28 PM

Did you create a virtual directory that points to your application?
hpdramstad
hpdramstad@hotmail.com

From: Nesodden, Norway
Posts: 5
Member Since: 02/20/06
posted February 21, 2006 5:34 PM

I created a directory ("www/editor")in my hosted environmnet using my FTP client "FileZilla" before copying the files over and trying to execute.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 21, 2006 6:54 PM

You need to create a virtual directory and application in IIS that corresponds to your application. Your hosting service should be able to help you out with this.
hpdramstad
hpdramstad@hotmail.com

From: Nesodden, Norway
Posts: 5
Member Since: 02/20/06
posted February 21, 2006 7:17 PM

OK - did that.

Next problem (running login.aspx),

Parser Error Message: Could not load type 'PowerTCP_FTPClient_CSharp.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="PowerTCP_FTPClient_CSharp.Global" %>
Source File: d:\Customers\user1097423\www\editor\global.asax  Line: 1
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 21, 2006 7:32 PM

This means that you did not compile the application or you forgot to copy over the dlls (in the bin directory)
hpdramstad
hpdramstad@hotmail.com

From: Nesodden, Norway
Posts: 5
Member Since: 02/20/06
posted February 21, 2006 7:35 PM

I copied "Dart.PowerTCP.Ftp.dll" to the bin directory - do I need to copy any other dll?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 21, 2006 7:38 PM

Yes. You need to copy all of the DLLs in the bin directory. If all you have is Dart.PowerTCP.Ftp.dll then you did not build the app.
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX