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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sjgid
    New Member
    • Nov 2011
    • 3

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

    I have ASP.Net application which is working fine on my development machine. However, when deployed on the internet, I get an error when I try to access one of my forms. The error is:

    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: /Product.aspx

    Version Information: Microsoft .NET Framework Version:4.0.303 19; ASP.NET Version:4.0.303 19.1

    I have other forms which are working fine. Please help.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Publish your website again and make sure to move All of the resulting files to the web server...

    -Frinny

    Comment

    • sjgid
      New Member
      • Nov 2011
      • 3

      #3
      Hi Frinny,
      I'm not quite sure what you mean by "All of the resulting files". As far as I know, there are two files that I need copied *.aspx and *.aspx.vb. What else do I need?

      SJ

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        If you publish your website a .dll and a bunch of other files will be created to run your application. There will likely be no .vb files in the resulting publish.

        If you open your solution explorer, right click on the solution and pick "publish" Visual Studio will publish your website and generate the files necessary to run the website on a server. You'll pick a directory where these files will be created.

        Move all of the generated files to your web server.

        -Frinny

        Comment

        • sjgid
          New Member
          • Nov 2011
          • 3

          #5
          Hi Frinny,
          Thank you for your input. I did not need to publish my site, as the error was due to a coding error in my code-behind. This is now fixed and all is working fine. Thanks again.

          SJ

          Comment

          Working...