title: The remote server returned an error: (500) Internal Server Error
body: <p>why I am getting "The remote server returned an error: (500) Internal Server Error." 
  this error this my code</p>
  
  <pre><code>    public override object Request()
      {
          Response = "";
          RequestTime = DateTime.Now;
          var url = _service.Url;
          HttpWebResponse responseObj = null;
          try
          {
              Uri requestUri = null;
              Uri.TryCreate(url, UriKind.Absolute, out requestUri);
  
  
  
              CredentialCache cc = new CredentialCache();
              NetworkCredential networkCredential = new NetworkCredential("username",
                                           "password", url);
              Uri uri = new Uri(url);
              cc.Add(uri, "Basic", networkCredential);
              HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
  
              request.Proxy = new WebProxy(url);
              request.Credentials = cc;
  
              request.Method = WebRequestMethods.Http.Post;
  
  
              Response = request.GetResponse();
  
  
          }
          catch (Exception x)
          {
  
              Logger.append(x.Message, Logger.ERROR);
          }
          Duration = DateTime.Now.Subtract(RequestTime).TotalMilliseconds;
          return Response;
     }
  </code></pre>
  
  <p>I tried the url direct from the browser and it's working.</p>