Consuming a Web Service error - A socket operation encountered a dead network"

Discussion in 'ASP.NET 2.0' started by jimmov, Nov 8, 2006.

  1. Hi,

    I have aweb service which when testing locally works fine. I can browse to the web service locally and I can consume the methods without getting any exceptions.


    I have published the web service but when attempting to consume a method from this remote web service I get the following error:
    "A socket operation encountered a dead network"

    I can browse to the remote web service and see the available methods.

    Any ideas why? Could it be a proxy or permissions thing? If so, how can I get resolve this issue?

    Thanks.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Are you using VS.NET to build your application that consumes the web service?

    What i want to know is when exactly do you see this error? was it during the time you add the web reference or when you actually use the application?

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. When I actually use the application. On calling a method from the web service in my web application and attempting to execute that method.
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    In that case, i think your application is dynamically changing the .url property at execution time.


    There is no reason why you can configure the web service in the IDE but fails when you run it.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page