| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Could not load type 'ftp.Global' |
| SL500DESIGNO From: dallas, TX USA Posts: 12 Member Since: 02/26/04 |
posted February 26, 2004 6:11 PM We are trying to evaluate this product to determine whether it is a feasible solution to our problem. Does anyone know how we may fix the error: Could not load type 'ftp.Global' Thanks, Jeff |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 26, 2004 6:51 PM What are you doing when you get the error? Please provide details. |
| SL500DESIGNO From: dallas, TX USA Posts: 12 Member Since: 02/26/04 |
posted February 27, 2004 10:37 AM I'm trying to do a simple example to get it to work with my ASP.NET application. The source file of the error is: c:\inetpub\wwwroot\ftp\global.asax Code below: =============== ASPX =============== <%@ Page language="c#" Codebehind="ftpTEST.aspx.cs" Inherits="RealCodeBehind" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <title>WebForm1</title> <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0"> <meta name="CODE_LANGUAGE" Content="C#"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <body MS_POSITIONING="GridLayout"> <form id="Form1" method="post" runat="server"> <asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 226px; POSITION: absolute; TOP: 100px" runat="server" Text="Button"></asp:Button> </form> </body> </HTML> ================ ASPX.CS ================ using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; public class RealCodeBehind : Page { protected Dart.PowerTCP.Ftp.Ftp ftp1; protected System.Web.UI.WebControls.Button Button1; private System.ComponentModel.IContainer components; private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here } #region Web Form Designer generated code override protected void OnInit(EventArgs e) { // // CODEGEN: This call is required by the ASP.NET Web Form Designer. // InitializeComponent(); base.OnInit(e); } /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.ftp1 = new Dart.PowerTCP.Ftp.Ftp(this.components); // // ftp1 // this.ftp1.ClientDataPort = ""; // // ftp1.Connection // this.ftp1.Connection.DoEvents = false; this.ftp1.Editor = this.ftp1; this.ftp1.Password = ""; this.ftp1.Server = ""; this.ftp1.Username = ""; this.Button1.Click += new System.EventHandler(this.Button1_Click); this.Load += new System.EventHandler(this.Page_Load); } #endregion private void Button1_Click(object sender, System.EventArgs e) { ftp1.Server = "rciweb"; // Substitute your server here. ftp1.Username = "jborden"; // Substitute your username here. ftp1.Password = ""; // Substitute your password here. // Now execute a simple method. In this case we use GetDirectory to return the // working directory. As long as Server, Username, and Password are set, login will // occur transparently. string dir; try { dir = ftp1.GetDirectory(); } catch { MessageBox.Show("Error"); return; } MessageBox.Show(dir); } } Thanksa |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 27, 2004 11:33 AM This appears to be a question about FTP for .NET, but you posted in the FTP Tool forum. Please take a look at the sample ASP.NET app that ships with the tool. If you still have questions, please post in the FTP for .NET forum. If your question requires posting as much code as you just did, please send the question to support@dart.com instead of the forum. We can't do code analysis of that magnitude on the forum. |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|