Hi!
I have a program that excutes the following code:
DirectoryInfo diretorio = new DirectoryInfo(@ "C:\teste") ;
FileInfo[] arquivos = diretorio.GetFi les("*.xml");
for(int contador=0;cont ador< arquivos.Length ;contador++)
{
lblMensagem.Tex t = "Uploading files... ";
ws.UploadFile(" http://www.meusite.com .br/uploader.aspx", "POST",arqu ivos[contador].FullName)
;
}
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."
I think that is going on because i haven't set up the right
credentials, ou authorisation to access the server... but, how can i do
it?
Can anybody help me?
Thanks