I use web service to upload image on server but when I called it I got following error:
No connection could be made because the target machine actively refused
Here is my code snippet.
MemoryStream ms = new MemoryStream(f)
FileStream fs = new FileStream(@"C:\\" + fileName, FileMode.Create);
ms.WriteTo(fs);
ms.Close();
fs.Close();
fs.Dispose();
return "OK";
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rajesh Sahoo102 reputationPosted Sep 4, 2015, 4:19 AM EDT
Rehan Shaikh42 reputationPosted Sep 4, 2015, 4:44 AM EDT
Rajesh Sahoo102 reputationPosted Sep 4, 2015, 5:13 PM EDT
Munesh SharmaRank #174 · 13.9K reputationPosted Sep 4, 2015, 9:34 PM EDT