locked
Issue with a .net 2.0 application on windows 7 machine RRS feed

  • Question

  • Hi All,

    I have a .net 2.0 Windows application. It has been working well on Windows XP and Vista as well.

    However lately some of my clients have moved on to windows 7 and they are encounting a few problems.

     

    My application is talking to a SOAP Web service.

    I do not have proxy and even tried to disable the fire wall as well.

    As soon as I make a method call to the webservice from my application I get the following error on windows 7 machine.

     

    System.Configuration.ConfigurationErrorsException: Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section. ---> System.ArgumentException: Value does not fall within the expected range.

       at System.String.nativeCompareOrdinal(String strA, String strB, Boolean bIgnoreCase)

       at System.String.Compare(String strA, String strB, StringComparison comparisonType)

       at System.Diagnostics.PerformanceCounter.set_CategoryName(String value)

       at System.Net.NetworkingPerfCounters.Initialize()

       at System.Net.Configuration.SettingsSectionInternal..ctor(SettingsSection section)

       at System.Net.Configuration.SettingsSectionInternal.get_Section()

       at System.Net.Sockets.Socket.InitializeSockets()

       at System.Net.NetworkAddressChangePolled..ctor()

       at System.Net.AutoWebProxyScriptEngine.AutoDetector.Initialize()

       at System.Net.AutoWebProxyScriptEngine.AutoDetector.get_CurrentAutoDetector()

       at System.Net.AutoWebProxyScriptEngine..ctor(WebProxy proxy, Boolean useRegistry)

       at System.Net.WebProxy.UnsafeUpdateFromRegistry()

       at System.Net.WebProxy..ctor(Boolean enableAutoproxy)

       at System.Net.Configuration.DefaultProxySectionInternal..ctor(DefaultProxySection section)

       at System.Net.Configuration.DefaultProxySectionInternal.GetSection()

       --- End of inner exception stack trace ---

       at System.Net.Configuration.DefaultProxySectionInternal.GetSection()

       at System.Net.WebRequest.get_InternalDefaultWebProxy()

       at System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint)

       at System.Net.HttpRequestCreator.Create(Uri Uri)

       at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)

       at System.Net.WebRequest.Create(Uri requestUri)

       at System.Web.Services.Protocols.WebClientProtocol.GetWebRequest(Uri uri)

       at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest(Uri uri)

       at System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest(Uri uri)

       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

     

    I have tried out lots of options on the web however without much joy for few days.

     

    Any help will be appreciated on this fornt.

    Cheers

    A

    Friday, May 28, 2010 3:28 AM

Answers

  • Hi,

     

    Please try to run the application with compatibility mode and see how it works.

     

    I also suspect this issue is on the application, please contact the support of the application. If it is developed by yourself, you can go to MSDN forum for further investigation:

     

    MSDN Forums

     

    Thanks. Hope this issue will be resolved soon.


    Nicholas Li - MSFT
    • Marked as answer by Nicholas Li Wednesday, June 2, 2010 7:13 AM
    Friday, May 28, 2010 10:06 AM
  • Hi ,

    Yes it is my application.

    I have tried the XP compatablity mode and no joy there.

    Will try MSDN

     

    Thanks.

     

    • Marked as answer by Nicholas Li Wednesday, June 2, 2010 7:13 AM
    Sunday, May 30, 2010 9:40 PM

All replies

  • Hi,

     

    Please try to run the application with compatibility mode and see how it works.

     

    I also suspect this issue is on the application, please contact the support of the application. If it is developed by yourself, you can go to MSDN forum for further investigation:

     

    MSDN Forums

     

    Thanks. Hope this issue will be resolved soon.


    Nicholas Li - MSFT
    • Marked as answer by Nicholas Li Wednesday, June 2, 2010 7:13 AM
    Friday, May 28, 2010 10:06 AM
  • Hi ,

    Yes it is my application.

    I have tried the XP compatablity mode and no joy there.

    Will try MSDN

     

    Thanks.

     

    • Marked as answer by Nicholas Li Wednesday, June 2, 2010 7:13 AM
    Sunday, May 30, 2010 9:40 PM