G
genc ymeri
I'm uploading a text through http server but I keep getting the below error.
Is the below error coming from my code or from the http server ???? Any
help/tip will be very much appreciated. Thank You very much in advance.
try
{
//create an instance of the WebClient.
System.Net.WebClient MyClient = new System.Net.WebClient();
MyStream = MyClient.OpenWrite(SaveAddress, "PUT");
MyStreamWriter = new System.IO.StreamWriter(MyStream);
//grab the stream and write the output.
MyStreamWriter.Write(textOutput.Text);
//close the writer.
MyStreamWriter.Close();
MessageBox.Show("File has been created!");
}
catch (System.Net.WebException ex)
{
MessageBox.Show(ex.Message);
}
Error:
An unhandled exception of type 'System.Net.WebException' occurred in
system.dll
Additional information:
Is the below error coming from my code or from the http server ???? Any
help/tip will be very much appreciated. Thank You very much in advance.
try
{
//create an instance of the WebClient.
System.Net.WebClient MyClient = new System.Net.WebClient();
MyStream = MyClient.OpenWrite(SaveAddress, "PUT");
MyStreamWriter = new System.IO.StreamWriter(MyStream);
//grab the stream and write the output.
MyStreamWriter.Write(textOutput.Text);
//close the writer.
MyStreamWriter.Close();
MessageBox.Show("File has been created!");
}
catch (System.Net.WebException ex)
{
MessageBox.Show(ex.Message);
}
Error:
An unhandled exception of type 'System.Net.WebException' occurred in
system.dll
Additional information: