How to: Bypass a Proxy Server for Local Web Requests
When you are using the Visual Studio Development Server to test your ASP.NET Web pages, you might receive a 502 error or an error indicating that the page cannot be displayed. If so, your browser might be unable to resolve a URL containing localhost and a port number, such as the following:
http:// localhost:8080 /MyWebSite/Default.aspx
You might be able to resolve this error by bypassing the proxy server for local Web requests, as described in the following procedure.
To bypass a proxy server for local Web requests
-
In Visual Studio, on the Tools menu, click Options.
-
In the Options dialog box, select the Show all settings check box.
-
Double-click Environment, click Web Browser, and then click the Internet Explorer Options button.
-
On the Connections tab of the Internet Properties property sheet, click LAN Settings.
-
On the Local Area Network (LAN) Settings property sheet, clear the Automatically detect settings check box.
-
Under Proxy server, select the Use a proxy server for your LAN (These settings will not apply to dial-up or VPN connections) check box.
-
Specify the address and port number that match your network, and then select the Bypass proxy server for local addresses check box.
-
Click OK, click OK, and then click OK again.
-
On the File menu, click Exit, and then re-open Visual Studio to apply the changes.