Problem to access from Web Application to Web Service

Discussion in 'ASP.NET WebServices' started by postprimeco, Nov 19, 2007.

  1. Hi to everyone.
    I have Web application (simple web site) and Web Service (like different web application).On local machine it's work fine through web references.But on discountasp.net in attempt to reach web service i receive error:

    No connection could be made because the target machine actively refused it
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
    Source Error:

    Line 708: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/getCountries", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    Line 709: public System.Data.DataSet getCountries() {
    Line 710: object[] results = this.Invoke("getCountries", new object[0]);
    Line 711: return ((System.Data.DataSet)(results[0]));
    Line 712: }



    It's work fine even whenon my local machine in Web References i change address to Web Service from localhost to www.domain.com.


    Please,any idea?


    Thanks


     
  2. Are you able to access your webservice on the DASP server directly from your browser(make sure it has anonymous access)?
    I would recommend you to remove the existing web reference .Add a new web-reference with live webservice path directly.Therefore you will not have to change the path manually ,like you did before.

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page