title: Internal Server Error in WebConnection call
body: <p>I have a Delphi application using WebConnection to connect to server (IIS Web Server, mapping httpsrvr.dll). In local IIS Server there is no problem. In production server, when calling a method, after 30 seconds a Internal Server Error (status code 500) is returned, but the connection itself is not lost, and the method continue to execute in the server.</p>
  <p>Before, we faced problem with timeout error, also after 30 seconds. We resolved by setting INTERNET_OPTION_CONNECT_TIMEOUT, INTERNET_OPTION_SEND_TIMEOUT and INTERNET_OPTION_RECEIVE_TIMEOUT parameters of wininet.</p>
  <p>I think this error is returned by IIS, but I dont know if is a IIS problem (some configuration), or a problem with httpsrvr.dll, and IIS cant figure out and returns 500 error.</p>
  <p>I tried to set <code>executionTimeout</code> in IIS configuration, nothing changed.</p>
  <p>We are tring to reproduce the production environment here, but in the mean time, can someone help with ideas?</p>