Shefali Lahariya

Shefali Lahariya

  • NA
  • 257
  • 155.6k

How to solve System.Net.WebException' occurred in System.dll

Oct 25 2017 7:40 AM
Hi,
 
An exception of type 'System.Net.WebException' occurred in System.dll but was not handled in user code.
The remote server returned an error: (500) Internal Server Error. 
using code: 
using (Stream stream = request.GetRequestStream())
{
SOAPReqBody.Save(stream);
}
//Geting response from request
using (WebResponse Serviceres = request.GetResponse())
 
Please give me suggestion for sove this error. 
 

Answers (3)