Previous Next

Thread: ASPX pages work within one website but not within another

Last post 09-07-2008 7:05 PM by John Happy. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 09-06-2008, 3:08 PM

    ASPX pages work within one website but not within another

    Recently upgraded from Windows Server 2003 to Windows Server 2008. I develop my sites using VS2005. Microsoft SharePoint (FrontPage extensions) is installed.

    My mystery is that the same web page (test.aspx), which has some text and and a few asp.net controls, opens up correctly in IE7 within one website but not within another. I get the following error message when attempting to browse to test.aspx within the unsuccessful website:

    This page cannot be found

    HTTP Error 404 - File or directory not found

    Internet Information Services (IIS)

     I've been Googling for hours, double checking file locations, checking my Server Manager configuration, comparing IIS 7 configuration settings between the two websites, checking file permissions, .. on and on according to the advice I found online but nothing has helped me solve the problem.

    All the IIS setting, file permissions, file locations, etc appear to be appropriate. I can browse to a straight html (.htm) page within the troubled website but can not get to an .aspx page.

    In my troubleshooting attempts, I created the same test.aspx file in both websites and even created the exact same web.config file within both websites.

    I have other websites that appear to have the same problem running aspx files.

    Why can I successfully run .aspx pages within one website but not within others on the same server?

     

  • 09-06-2008, 6:24 PM In reply to

    Re: ASPX Pages work within one website buy not within another

    How about file/folder permissions?  ASP.NET is installed and configured?  Did you look at the IIS logs to see what the 404 error is referencing as a request?

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 09-06-2008, 8:06 PM In reply to

    Re: ASPX Pages work within one website buy not within another

    File/Folder permissions appear to be correct, when compared to the website folder and file that is working. My Server Manager states that the Web Server role service is installed and found under that role service is Application Development and found under that heading ASP.NET is installed as well as .NET Extensibility, ASP, CGI, ISAPI Extensions and some others.

    The IIS Request Diagnostics log reveals the following two warnings:

    Security_Denied_By_Mimemap ... and lists the path to the troublesome .aspx file

    Module_Set_Response_Error_Status ... ModuleName = StaticFileModule, HttpStatus = 404, HttpReason = Not Found, HttpSubStatus = 17, ErrorCode = 2147942450, ConfigExceptionInfo ErrorCode = The request is not supported. (0x80070032)

    Do the warnings listed above help you better understand what the problem may be?

  • 09-07-2008, 7:05 PM In reply to

    Re: ASPX Pages work within one website buy not within another

    I fixed my problem ...

    I discovered that, although .aspx files were shown as 'enabled' under IIS Handler Mappings, the mapping for my troublesome website's .aspx pages pointed to the Framework v1.1.4322 rather than what I wanted which was v2.0.50727. I deleted the mapping pointed to the dll for v1 and created a custom mapping pointing to the dll file for v2.

    I still do not know why my web server did not serve the .aspx page when enabled under v1 and then did so when enabled uder v2.

Page 1 of 1 (4 items)
Page view counter