Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.8k views
in .NET FTP by (180 points)
I am designing a system which uses both a standard FTPConnection object on one form for some automated file transfers and an ExFTPConnection object on another form to provide a simple, hopefully user-proof, ftp interface. I originally setup up the FTPConnection using the free version of edtFTPnet, then upgraded to edtFTPnet/Express when I decided to do the ftp interface form as well. Everything works like a dream in development, but when I install the system on the user's machine, opening the the ftp interface form brings up the following error:

************** Exception Text **************
System.IO.FileNotFoundException: The specified path 'c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE' was not found.
at EnterpriseDT.Net.Ftp.FTPConnection.set_LocalDirectory(String value)
at Central_Entry_Office_se.frmCEOftp.InitializeComponent()
at Central_Entry_Office_se.frmCEOftp..ctor()
at Central_Entry_Office_se.frmMDIMain.SimpleFileTransferToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Central Entry Office se
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/ready/Local%20Settings/Apps/2.0/NNN8XBXA.7QM/EGWPJDLB.2CL/cent..tion_8fe44b525ad1c580_0001.0004_a41960e4dfcaa9a9/Central%20Entry%20Office%20se.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
edtFTPnetEx
Assembly Version: 3.6.0.0
Win32 Version: 3.6.0.0
CodeBase: file:///C:/Documents%20and%20Settings/ready/Local%20Settings/Apps/2.0/NNN8XBXA.7QM/EGWPJDLB.2CL/cent..tion_8fe44b525ad1c580_0001.0004_a41960e4dfcaa9a9/edtFTPnetEx.DLL


If I click on "Continue" nothing happens; the form doesn't come up.

I have a reference in the project for edtFTPnetEx with CopyLocal set to True. The licenseKey and LicenseOwner both appear to be properly set for the ExFTPConnection object. The FTPConnection object seems to be working on the other form (some problems but I think they are related to an unstable internet connection).

Any ideas what could be causing this error?

Thanks!

P.S. When I previewed this message "license key" and "License Owner" were both replaced with asterisks.

2 Answers

0 votes
by (162k points)
The state of the connection can be serialized to a *.ftp file.

Is your app loading this, and trying to set the LocalDirectory property to "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE", a value from the development machine?
0 votes
by (180 points)
Thanks for the quick reply.

I didn't think I was using a *.ftp file, but I started checking the properties of the connection to see if there was any indication that I was and found the problem. The LocalDirectory property was pointing at "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE" (is that a default? I don't think I would have intentionally set it to that - it is too obscure!). I changed it to "c:\", re-built the project, installed it and everything works fine.

Nice to have a win at the end of the day! Thanks again!

Categories

...