G
Guest
Hi!
I have a program that excutes the following code:
DirectoryInfo diretorio = new DirectoryInfo(@"C:\teste");
FileInfo[] arquivos = diretorio.GetFiles("*.xml");
for(int contador=0;contador<arquivos.Length;contador++)
{
lblMensagem.Text = "Uploading files... ";
ws.UploadFile("http://www.meusite.com.br/uploader.aspx","POST",arquivos[contador].FullName);
}
lblMensagem.Text = "Success!";
As you can see i've got a webpage that receives those files and saves on the
apropriate directory.
This code works when I'm running it on my machine. When I specify the link
to http://localhost/meusite/uploader.aspx the files are uploaded with no
errors but when i change the link to http://www.meusite.com.br/uploader.aspx
the following error appears:
"The remote server returned an error: (500) Internal Server Error."
Can anybody help me?
Thanks
I have a program that excutes the following code:
DirectoryInfo diretorio = new DirectoryInfo(@"C:\teste");
FileInfo[] arquivos = diretorio.GetFiles("*.xml");
for(int contador=0;contador<arquivos.Length;contador++)
{
lblMensagem.Text = "Uploading files... ";
ws.UploadFile("http://www.meusite.com.br/uploader.aspx","POST",arquivos[contador].FullName);
}
lblMensagem.Text = "Success!";
As you can see i've got a webpage that receives those files and saves on the
apropriate directory.
This code works when I'm running it on my machine. When I specify the link
to http://localhost/meusite/uploader.aspx the files are uploaded with no
errors but when i change the link to http://www.meusite.com.br/uploader.aspx
the following error appears:
"The remote server returned an error: (500) Internal Server Error."
Can anybody help me?
Thanks