HTTP 404. The resource you are looking for (or one of its dependencies) could have be

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Thilan
    New Member
    • Apr 2007
    • 4

    HTTP 404. The resource you are looking for (or one of its dependencies) could have be

    Hi

    I have done hello world web service which run local pc very well but when I apply to the my shared server it is given me erroer.

    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

    Requested Url: /helo1/Service.asmx

    I have done this web service with vs2008 and framework 2.0, My server also same frame work.

    Please help me to solve this problem.

    Best Regards,
    Thilan Suwandarthna.
  • prabirchoudhury
    New Member
    • May 2009
    • 162

    #2
    HTTP 404. The resource you are looking for (or one of its dependencies) could have b

    Instead of using Server.Mappath, you may refer the file c:\inetpub\www\ .... directly

    or it might happen the file is not exist on the refer directory.

    Comment

    • Thilan
      New Member
      • Apr 2007
      • 4

      #3
      Hi,

      Well Service.asmx in the virtual directory and Service.cs file in App_Code folder.
      I can see both files are available in virtual directory.

      Also when you check Service.asmx file it refer class file as,
      <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %>

      This is working very well in local pc , Can you tell me how to fix the path there,

      Best Regards,
      Thilan Suwandarthna.

      Comment

      • shiznit770
        New Member
        • Apr 2009
        • 10

        #4
        Originally posted by Thilan
        Hi,

        Well Service.asmx in the virtual directory and Service.cs file in App_Code folder.
        I can see both files are available in virtual directory.

        Also when you check Service.asmx file it refer class file as,
        <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %>

        This is working very well in local pc , Can you tell me how to fix the path there,

        Best Regards,
        Thilan Suwandarthna.
        If you're trying to access it from a different computer, you need to specify the website name and be sure that either your computer or the server is set to resolve the website name.

        Comment

        • Thilan
          New Member
          • Apr 2007
          • 4

          #5
          Hi,

          I have solve the problem. which if any one concern you should apply all the files necessary for web service to the virtual directory.

          Best Regards,
          Thilan Suwandarthna.

          Comment

          Working...