What am I missing?

Last post 08-14-2007 5:15 PM by mddubs. 6 replies.

Sort Posts:

  • What am I missing?

    08-10-2007, 3:28 PM
    • Member
      5 point Member
    • mddubs
    • Member since 08-10-2007, 3:13 PM
    • Posts 11
    I've just setup a Server 2003 R2 Standard box as an Application Server.  FTP works fine and I thought IIS was working fine because a simple .htm file isn't giving me any problems.  But I wrote a very simple WebApp in VS2005 and when I copy those files to the webserver it just displays this error message:

     

    The page cannot be found

    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

    Please try the following:

    • Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
    • If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
    • Click the Back button to try another link.

    HTTP Error 404 - File or directory not found.
    Internet Information Services (IIS)


    Technical Information (for support personnel)

    • Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
    • Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.

     

     I've tried messing with a lot of the IIS settings.  I've made sure my website is using ASP.NET 2.0.50727.  The website is using Anonymous access.  This webapp is as simple as it gets, new webapp project with a single page containing the text "Very Simple Test".  I've tried deploying it two ways; copying all of the files in Test.Web and also using the Publish wizard which I think just strips out the unnecessary files.  Regardless... I've set it up like this:

    • www.test.com/index.htm (works fine)
    • www.test.com/testcopied/Default.aspx (errors out)
    • www.test.com/testpublished/Default.aspx (errors out)

    Any help would be appreciated.

    -mddubs 

    http://bunkerhollow.com
  • Re: What am I missing?

    08-10-2007, 3:41 PM
    • All-Star
      32,526 point All-Star
    • augustwind
    • Member since 07-21-2002, 11:16 PM
    • Garland, TX
    • Posts 4,550
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Go to IIS and check to see if 1. - ASP.net is current version used, and 2. - it's definitely set up as an application

    David Wier
    MCP/ASPInsider
    ASPNet101.com - where to look first!
    Replace It! - the newest from August Wind - search/replace in multiple files
    Control Grouper - easily control properties for multiple controls with one control!
    Calendar Express - The Best HTML Calendar Generator on the web!
    (Please 'Mark as Answer' when it applies)
  • Re: What am I missing?

    08-10-2007, 7:26 PM
    • Member
      5 point Member
    • mddubs
    • Member since 08-10-2007, 3:13 PM
    • Posts 11
    1. I've checked the ASP.NET version is 2.0.50727 for the Default Web Site and the Virtual Directory contained within it.
    2. As far as I know it's setup as an application, both the Default Web Site and Virtual Directory have Application Settings ... Execute Permissions: Script Only ... Application Pool: DefaultAppPool .. etc

    I've uploaded the files to a server at work, and the application runs fine.  I do the same at home and I get the error.

     -mddubs
     

    http://bunkerhollow.com
  • Re: What am I missing?

    08-13-2007, 10:23 AM
    • Member
      30 point Member
    • james_joe12
    • Member since 07-20-2007, 6:58 AM
    • India
    • Posts 5

    Your Asp.net filters might not be properly registered with IIS. Try going to .Net command prompt and run the command  "aspnet_regiis -i". Hope that solves the issue

    Regards,
    Joe
  • Re: What am I missing?

    08-13-2007, 1:52 PM
    • Member
      5 point Member
    • mddubs
    • Member since 08-10-2007, 3:13 PM
    • Posts 11

     I can't find a .Net command prompt.  I have Visual Studio on my laptop, which is where I created the project.  I moved the files from there to my server.  My server is running Server 2003 R2 Standard with updates, and I installed the Application Server role by clicking Add/Remove Programs -> Windows Components -> Application Server... I have these components selected:

    •  Application Server Console
    • ASP.NET
    • Enable network COM+ Access
    • Enable network DTC Access
    • Internet Information Services (IIS)
      • Common Files
      • File Transfer Protocol (FTP) Service
      • FrontPage 202 Server Extensions
      • Internet Information Services Manager
      • World Wide Web Service

    Still stuck.

    -mddubs 

    http://bunkerhollow.com
  • Re: What am I missing?

    08-14-2007, 5:33 AM
    Answer
    • Member
      30 point Member
    • james_joe12
    • Member since 07-20-2007, 6:58 AM
    • India
    • Posts 5

    You should be able to find "aspnet_regiis.exe" in the framework folder of your server (C:\WINDOWS\Microsoft.NET\Framework\<version no>\). You can move to this mentioned folder using command prompt and execute the command. I had faced the same problem and this had solved it.

    Regards,
    Joe
  • Re: What am I missing?

    08-14-2007, 5:15 PM
    • Member
      5 point Member
    • mddubs
    • Member since 08-10-2007, 3:13 PM
    • Posts 11

    Worked like a charm, thanks! 

    http://bunkerhollow.com
Page 1 of 1 (7 items)