The following error occured when trying to open a web page (ASP.NET) that was doing an HttpRequest.
"The underlying connection was closed: The remote name could not be resolved."
This is usually caused because the ASP.NET app is on a network that is using a proxy server - and as ASP.NET does not run as a user account, it does not have access to the proxy settings in the registry.
To resolve add the following section to your web.config file.
<defaultProxy>
<proxy
usesystemdefault = "false"
proxyaddress="http://proxyserver:port"
bypassonlocal="true"
/>
</defaultProxy>
Note that this must be placed within a <system.net> section (not system.web!).
MS have a kb article on it here.
HTH
Tim