<p>I'm getting the following error when my win32 (c#) app is calling web services.</p>
<pre><code>The request failed with HTTP status 504: Gateway timeout server response timeout.
</code></pre>
<p>I understand 'I think' that this is because the upstream request does not get a response in a timely fashion.</p>
<p>But my question is this?  How do I change the <strong>app.config</strong> settings in my win32 application to allow more time to process its data.  I assume I require these changes to be made on my app settings as the webservices and IIS hosting the ws are setup with extended times.</p>
<p>Look forward to a response and thank you in advance.</p>

CheckUpDown has
a nice explanation of the 504 error
:
A server (not necessarily a Web server) is acting as a gateway or proxy to fulfil the request by the client (e.g. your Web browser or our CheckUpDown robot) to access the requested URL. This server did not receive a timely response from an upstream server it accessed to deal with your HTTP request.
This usually means that the upstream server is down (no response to the gateway/proxy), rather than that the upstream server and the gateway/proxy do not agree on the protocol for exchanging data.
This problem is entirely due to slow IP communication between back-end computers, possibly including the Web server. Only the people who set up the network at the site which hosts the Web server can fix this problem.