FTP, GetResponse (), error 550 Archivo no disponible

He creado una pequeña aplicación de formularios de Windows para cargar el archivo en uno de los sitios ftp de nuestros clientes. Pero el problema que tengo es que cuando ejecuto esta aplicación en mi máquina local, el archivo se carga correctamente. Pero si ejecuto este programa en nuestro servidor, recibo este mensaje de error;

el servidor remoto devolvió un error: (550) Archivo no disponible (por ejemplo, archivo no encontrado, no se puede acceder al archivo), en esta línea 'objFTPRequest.GetRequestStream ();'.

¿Alguien sabe por qué? ¿Necesito configurar el firewall o algo? Aquí está mi código;

FileInfo objFile = new FileInfo(filename);
FtpWebRequest objFTPRequest;

// Create FtpWebRequest object 
objFTPRequest = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpServerIP + "/outbox/" + objFile.Name));

// Set Credintials
objFTPRequest.Credentials = new NetworkCredential(ftpUserName, ftpPassword);

// By default KeepAlive is true, where the control connection is 
// not closed after a command is executed.
objFTPRequest.KeepAlive = false;

// Set the data transfer type.
objFTPRequest.UseBinary = true;

// Set content length
objFTPRequest.ContentLength = objFile.Length;

// Set request method
objFTPRequest.Method = WebRequestMethods.Ftp.UploadFile;

// Set buffer size
int intBufferLength = 16 * 1024;
byte[] objBuffer = new byte[intBufferLength];

// Opens a file to read
FileStream objFileStream = objFile.OpenRead();


// Get Stream of the file
Stream objStream = objFTPRequest.GetRequestStream();

int len = 0;

while ((len = objFileStream.Read(objBuffer, 0, intBufferLength)) != 0)
{
    // Write file Content 
    objStream.Write(objBuffer, 0, len);

}

            objStream.Close();
            objFileStream.Close();

Respuestas a la pregunta(13)

Su respuesta a la pregunta