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.WebC lient MyClient = new System.Net.WebC lient();
MyStream = MyClient.OpenWr ite(SaveAddress , "PUT");
MyStreamWriter = new System.IO.Strea mWriter(MyStrea m);
//grab the stream and write the output.
MyStreamWriter. Write(textOutpu t.Text);
//close the writer.
MyStreamWriter. Close();
MessageBox.Show ("File has been created!");
}
catch (System.Net.Web Exception ex)
{
MessageBox.Show (ex.Message);
}
Error:
An unhandled exception of type 'System.Net.Web Exception' occurred in
system.dll
Additional information: