Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
Author | Forum: PowerTCP FTP for .NET Topic: Could not load file or assembly 'Dart.PowerTCP.Ftp' |
reyesricardo From: Nogales, AZ USA Posts: 1 Member Since: 11/20/09 |
posted November 20, 2009 10:49 AM Hi: We have used PowerTCP.FTP for .NET v2.2.5 for some years without problems. I installed on developer machine the last version (3.5, I think) to try it. I developed a web site with trial version and it worked fine. Trial period finished and I unistalled the component (v3.5). I wanted to update the web site to use the v2.2.5 and it didn't work in the web server (on developing machine works fine). Obviouslly I builded the application to take the changes but didn't work. I created a completly new web site in dev machine, then I created a new virtual directoy in web server but with the same results: in developing machine it works very good but when I move it to web server it fails. The error is the follow: Could not load file or assembly 'Dart.PowerTCP.Ftp, Version=2.2.5.0, Culture=neutral, PublicKeyToken=5966291b8955e4bb' or one of its dependencies. The system cannot find the file specified. I created only the web site (it is not part of any solution) I have the licenses.licx with this line Dart.PowerTCP.Ftp.Ftp, Dart.PowerTCP.Ftp The web site is very simple here is the solution explorer tree: App_Data (empty) Bin -App_Licenses.dll -Dart.PowerTCP.Ftp.Forms.dll --Dart.PowerTCP.Ftp.Forms.dll.refresh Upload -test.txt Default.aspx -Default.aspx.vb licenses.licx web.config Default.aspx.vb code is: Imports System.Data Imports System.Data.SqlClient Imports System.IO Imports System.Net Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim strNombreArchivo As String = "test.txt" If (File.Exists(Server.MapPath(".\Upload\") & strNombreArchivo)) Then Dim Ftp1 As New Dart.PowerTCP.Ftp.Ftp Dim file As Dart.PowerTCP.Ftp.FtpFile Ftp1.Server = "x.x.x.x" ' Substitute your server here. Ftp1.Username = "naotis\ftp1" ' Substitute your username here. Ftp1.Password = "****" ' Substitute your password here. Ftp1.Invoke(Dart.PowerTCP.Ftp.FtpCommand.ChangeDir, "/ASN/Import/WOTransfer/12125") file = Ftp1.Put(Server.MapPath(".\Upload\") & strNombreArchivo, strNombreArchivo) Else Response.Write("File Does Not Exist") End If End Sub End Class Could you help me? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted November 20, 2009 11:07 AM Hi, It sounds like you did not deploy the Dart.Ftp.dll with the website. Also, there should be no need to deploy the Dart.PowerTCP.Ftp.Forms dll. Hope it helps, -ken ------ |
Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
![]() |