404: Not Found

Discussion in 'ASP.NET WebServices' started by tridld, Aug 8, 2007.

  1. Good day

    I'm attempting my first web page calling a web service. Both are application folders within my site. I get a"404: Not Found" error when calling the service to return a simple string. Could this be an authentication problem?


    authentication mode="none" Can someone point mein the right direction?

    Thanks
     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. the service url is http://www.helmwebview.com/pto and a call to 'hello' returns this full message:

    System.Net.WebException: The request failed with HTTP status 404: Not Found. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at PTO.wV.Hello() at Default2.Page_Load(Object sender, EventArgs e) signature: System.Net.WebException: The request failed with HTTP status 404: Not Found. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at PTO.wV.Hello() at Default2.Page_Load(Object sender, EventArgs e)

    'hello' should return 'Hello World' and the date/time

    As always, everything works fine on the test machine or on a local IIS-enabled system.
     
  4. Joseph Jun

    Joseph Jun DiscountASP.NET Staff

    Could you please send us the URL where you are sending data to the web service as well?

    Winston

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. I'm happy to sat that I figured it out. Using the development system, my web.config <appSettings> generate


    <add key="PTO.wV" value="http://localhost/... and this of course works fine for a dedicated desktop setup. Changing the "localhost" to my webpage's name points to the webservice correctly on the hosting system.


    Thanks for your help!
     

Share This Page