Previous Next

Thread: ASPX, IIS7 & default documents

Last post 06-28-2008 8:01 AM by steve schofield. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 06-26-2008, 1:52 PM

    • col-lucy
    • Not Ranked
    • Joined on 06-26-2008, 5:47 PM
    • Posts 3
    • col-lucy

    ASPX, IIS7 & default documents

    aspx, IIS7 & default documents

    Hi all,

    Sorry, I am not very good with IIS7 yet, but I have a particular problem that is driving me mad.

    I have a single page asp.net web application, developed in C# under VS2008. The page is just default.aspx

    I publish the site to an IIS7 web server on another machine, and create an application for it (integrated). The site has default document enabled.

    When I try to access the page, I get the following results:

    Local machine
    http://localhost/myapp  Works
    http://localhost/myapp/default.aspx Works

    Local network machine
    http://server/myapp   Works
    http://server/myapp/default.aspx Works

    Internet
    http://www.somethingfishy.com/myapp Works
    http://www.somethingfishy.com/myapp/default.aspx FAILS!


    When I get it, the error is strange, and I have not been able to get any better diagnostic:


    Server Error in '/' Application.
    --------------------------------------------------------------------------------
    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies).....

    /myapp/default.aspx


    Any help would be appreciated


    Baffled of England

  • 06-27-2008, 1:05 AM In reply to

    Re: ASPX, IIS7 & default documents

    1)is the default.aspx document listed on the server on the internet?

    2) anything strange in the event log?

    3) Can you post the iis logs for a single request?

    4) On the server displaying the Internet name locally, does it list a more detailed status code. 

    Steve Schofield
    Windows Server MVP - IIS
    MCTS - Windows Hosting

    http://weblogs.asp.net/steveschofield
    http://www.iislogs.com
    http://www.orcsweb.com/
    Managed Hosting Solutions
    #1 in Service and Support
  • 06-27-2008, 2:27 PM In reply to

    • col-lucy
    • Not Ranked
    • Joined on 06-26-2008, 5:47 PM
    • Posts 3
    • col-lucy

    Re: ASPX, IIS7 & default documents

    Hi Steve

    Thanks for getting back to me. To answer your questions:

    1. No, I cannot access default.aspx from the IIS machine via it's internet address

    2. There is nothing at all to be seen in the event log for the server machine.

    3. The following log entries were taken in IIS format.
    The first entry is a request to http://www.mywebsite.com/myApp
    The second entry is a request to http://www.mywebsite.com/myApp/default.aspx
    81.96.84.217, -, 6/27/2008, 18:55:53, W3SVC1, DESKTOP, 192.168.1.6, 26, 710, 383, 301, 0, GET, /myApp, -,
    81.96.84.217, -, 6/27/2008, 18:55:53, W3SVC1, DESKTOP, 192.168.1.6, 198, 711, 758, 200, 0, GET, /myApp/, -,

    The following lines are W3C format, for the same two requests:
    2008-06-27 17:57:22 192.168.1.6 GET /myApp - 80 - 81.96.84.217 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+MathPlayer+2.10b;+SLCC1;+.NET+CLR+2.0.50727;+Media+Center+PC+5.0;+Tablet+PC+2.0;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.04506) 301 0 0 22
    2008-06-27 17:57:22 192.168.1.6 GET /myApp/ - 80 - 81.96.84.217 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+MathPlayer+2.10b;+SLCC1;+.NET+CLR+2.0.50727;+Media+Center+PC+5.0;+Tablet+PC+2.0;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.04506) 200 0 0 331

    There are also no entries from Failed Event Tracing. A log file is not created.

    4. There are no more detailed error messages to be seen by making the request from the IIS machine. In IIS7, I have set up detailed error messages for error 404. Still, nothing is shown other than the same old:

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


    And, yes, I have already done a sanity check. I am happy that default.aspx exists!!!

     

    Thanks for your time

     

    All the best

     

    col

     

  • 06-27-2008, 6:51 PM In reply to

    • col-lucy
    • Not Ranked
    • Joined on 06-26-2008, 5:47 PM
    • Posts 3
    • col-lucy

    Re: ASPX, IIS7 & default documents

    I have some further light to shed on this (but that is not to say I have a solution!)

    My web site is reached through a url redirect, courtesy of dynamic DNS....

    Web forwarding by my domain, from (e.g.) http://www.somethingfishy.com does a framed forwarding to my server, which is reached at http://somethingfishy.gotdns.com, and points at my web server machine.

    http://www.somethingfishy.com/myApp/default.aspx does not work, but

    http://somethingfishy.gotdns.com/myApp/default.aspx does

    Standard html pages work fine.

    I am still stumped for a solution, though!

     

     

  • 06-28-2008, 8:01 AM In reply to

    Re: ASPX, IIS7 & default documents

    It sounds like the internet forwarding service does not recognize default.aspx as a default document.  Can you add to the list of default documents.

    1) Try adding index.htm or index.html with a metatag refresh to the default.aspx.  So in the order of default documents on your server, it'll process the standard HTML page which does a redirect to your ASPX page. 

    Steve Schofield
    Windows Server MVP - IIS
    MCTS - Windows Hosting

    http://weblogs.asp.net/steveschofield
    http://www.iislogs.com
    http://www.orcsweb.com/
    Managed Hosting Solutions
    #1 in Service and Support
Page 1 of 1 (5 items)
Page view counter