title: WPF application I want to reproduce "Error Details: The remote server returned an error: (502) Bad Gateway"
body: <p>I have WPF (with .NET framework 3.5) application communicating with web service. At client side, following errors are coming: </p>
  
  <ol>
  <li>The remote server returned an error: (502) Bad Gateway.</li>
  <li>The remote server returned an error: (504) Gateway Timeout.</li>
  </ol>
  
  <p>These error are not reproducible in dev environment. How can I reproduce these errors by just changing the web.config file of web service.</p>
  
  <p>Hint: At client side it takes some time to process the request and send a response from web server to WPF application. This was also tried locally, but still these errors are not reproduced.</p>