"Add Web Reference" wizard failure resolved by installation followed by uninstallation of IPv6  
Author Message
rudrf





PostPosted: Visual C# General, "Add Web Reference" wizard failure resolved by installation followed by uninstallation of IPv6 Top

Hello,

I am using VS2005 Professional. I had encountered a problem with adding a web service, where the following error message would be shown:

"Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section."

Steps to reproduce:

1. Start a new project (C# Console Application)

2. Project -> Add Web Reference

3. Enter URL to WSDL (or any URL)

4. The error message above appears in the textbox labeled "Web services found at this URL:"

Investigating the problem further, the method System.Net.WebProxy.GetDefaultProxy() returned the error:

System.Net.Sockets.SocketException: An address incompatible with the requested protocol was used.

System.Net.SafeCloseSocketAndEvent.CreateWSASocketWithEvent(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, bool autoReset, bool signaled)
System.Net.NetworkAddressChangePolled..ctor()
System.Net.AutoWebProxyScriptEngine.AutoDetector.Initialize()
System.Net.AutoWebProxyScriptEngine.CurrentAutoDetector_get()
System.Net.AutoWebProxyScriptEngine..ctor(WebProxy proxy, bool useRegistry)
System.Net.WebProxy.UnsafeUpdateFromRegistry()
System.Net.WebProxy..ctor(bool enableAutoProxy)
System.Net.WebProxy.GetDefaultProxy()

I was able to resolve the problem by installing and then uninstalling IPv6 on the current network adapter (IPv6 had not been installed previously). I am posting this in case anyone encounters the same problem.



Visual C#19  
 
 
Peter Ritchie





PostPosted: Visual C# General, "Add Web Reference" wizard failure resolved by installation followed by uninstallation of IPv6 Top

Could you be more specific What URL did you use. I've added dozens of Web Service reference and never encountered this error.