title: 500 internal server error at GetResponse()
body: <p>I have a heavy traffic aspx page calling a web service upon every user`s request as follows.</p>
  
  <pre><code>string uri = "Path.asmx";
  string soap = "soap xml string";
  
  HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
  request.Headers.Add("SOAPAction", "\"http://xxxxxx"");
  request.ContentType = "text/xml;charset=\"utf-8\"";
  request.Accept = "text/xml";
  request.Method = "POST";
  
  using (Stream stm = request.GetRequestStream())
  {
      using (StreamWriter stmw = new StreamWriter(stm))
      {
          stmw.Write(soap);
      }
  }
  WebResponse response = request.GetResponse();
  response.close();
  </code></pre>
  
  <p>Everything is working fine but sometimes I am getting the following error.</p>
  
  <p><b>The remote server returned an error: (500) Internal Server Error.
     at System.Net.HttpWebRequest.GetResponse()</b></p>
  
  <p>Does anybody have any idea about this error or can anybody tell me if I am doing wrong.</p>