Error when calling WebService method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • E11esar
    New Member
    • Nov 2008
    • 132

    Error when calling WebService method

    Hi there.

    I have written an ASP.Net web page in C# and have also create a corresponding WebService that will return DataSets to the web application as required.

    This all works fine when I have the Web Service and web site running via their own Visual Studio sessions, but once I publish these projects and load them into respective directories in IIS, I receive the following error when the client web applicatioon makes a call to the Web Service:

    "No connection could be made because the target machine actively refused it 127.0.0.1..."

    and this then is followed by a port number.

    The web reference in the client web application has been updated with the address of the web service in IIS (http:''localho st/etc...) so I can't see what is going wrong here..?

    Any help please will be very much appreciated.

    Thank you.

    M :)
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    Originally posted by E11esar
    Hi there.

    I have written an ASP.Net web page in C# and have also create a corresponding WebService that will return DataSets to the web application as required.

    This all works fine when I have the Web Service and web site running via their own Visual Studio sessions, but once I publish these projects and load them into respective directories in IIS, I receive the following error when the client web applicatioon makes a call to the Web Service:

    "No connection could be made because the target machine actively refused it 127.0.0.1..."

    and this then is followed by a port number.

    The web reference in the client web application has been updated with the address of the web service in IIS (http:''localho st/etc...) so I can't see what is going wrong here..?

    Any help please will be very much appreciated.

    Thank you.

    M :)
    instead of "localhost" use the server name/IP...

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Is the mentioned port open then? Most likely you are running a firewall that is blocking the requested port.

      Comment

      Working...