Microsoft KB Archive/835456

= When you change your proxy server settings, the change does not take effect in Visual Studio .NET or in Visual Studio 2005 =

Article ID: 835456

Article Last Modified on 2/10/2006

-

APPLIES TO


 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio 2005 Standard Edition
 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Academic Edition
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Academic Edition

-





SYMPTOMS
If you change the proxy server settings of Microsoft Internet Explorer from within the Microsoft Visual Studio .NET IDE or the Microsoft Visual Studio 2005 IDE, you may receive a proxy server error message.



CAUSE
This behavior occurs because the Microsoft .NET Framework and Visual Studio .NET or Visual Studio 2005 do not support automatic configuration of the proxy server.



WORKAROUND
To avoid this behavior, restart Visual Studio .NET or Visual Studio 2005 after you change the proxy server settings.



STATUS
This behavior is by design.



Steps to reproduce the behavior
To reproduce this behavior, follow these steps:  In Visual Studio .NET or in Visual Studio 2005, turn on automatic proxy server configuration:  On the Tools menu, click Options. The Options dialog box appears. Click Projects, click Web Settings, and then click Connection Settings. The Internet Properties dialog box appears. Click the Connections tab. On the Connections tab, click LAN Settings. The Local Area Network (LAN) Settings dialog box appears.</li> Click to select the Automatically Detect Settings check box, and then click to clear all other check boxes.</li> Click OK three times to close all dialog boxes.</li></ol> </li> Try to add a Web reference: <ol style="list-style-type: lower-alpha;"> On the File menu, point to Open, and then click Project. The Open Project dialog box appears.</li> Locate the folder that contains the Web application project. Click any one of the Web application projects, and then click Open.</li> In Solution Explorer, right-click the Web application project, and then click Add Web reference. The Add Web Reference dialog box appears.</li> In the URL box, type the URL of the Web Service Description Language (WSDL) file, and then click Go.

You receive a proxy error. Also, under Web services found at this URL, you receive the following error message:

The proxy settings on this computer are not configured correctly for web discovery. Click the Help button for more information.

</li></ol> </li> In Visual Studio .NET or in Visual Studio 2005, turn on manual proxy server configuration: <ol style="list-style-type: lower-alpha;"> On the Tools menu, click Options. The Options dialog box appears.</li> Click Projects, click Web Settings, and then click Connection Settings. The Internet Properties dialog box appears.</li> Click the Connections tab.</li> On the Connections tab, click LAN Settings. The Local Area Network (LAN) Settings dialog box appears.</li> Click to select the Use a proxy server for your LAN (These settings will not apply to dial-up or VPN connections) check box, and then click to clear the Automatically detect settings check box.</li> Click OK three times to close all dialog boxes.</li></ol> </li> Add a Web reference to the same Web application project: <ol style="list-style-type: lower-alpha;"> In Solution Explorer, right-click the Web application project, and then click Add Web reference. The Add Web Reference dialog box appears.</li> <li>In the URL box, type the URL of the WSDL file, and then click Go. The name of the Web reference appears in the Web reference name box.</li> <li>Click Add Reference.</li></ol>

The Web reference is added to your Web application project.</li></ol>

Keywords: kbuser kbip kbweb kbprb kbconfig kbvs2005applies kbvs2005swept KB835456

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.