I have some c# code that downloads files from an FTP server. It works fine when I run it and it works fine when I install it on my development machine then run it. However, when I try to install it on another machine (a Windows XP SP3 VM) it doesn't work. No exceptions are thrown or anything.
Here is the short version of my code:
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpServerIP + dir + "/"));
reqFTP.BeginGetResponse(new AsyncCallback(DLFilesInDirCallback), state);
.......
public void DLFilesInDirCallback(IAsyncResult ar)
{
MessageBox.Show("dcallbk");
..... }
The message box never comes up when I run the installed version on another computer. Is there a missing dependency or something I need to install before it can be run on another machine? .net framework 4 is already installed on the xp machine. I tried turning my firewall off, and tried synchronous ftp with the same result.
Thanks, Matt