« Previous Next »

Answered Thread: ASP.NET site occasionally never loads at Localhost

Last post 11-06-2009 9:35 PM by mbopp. 9 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (10 items)

Sort Posts:

  • 10-30-2009, 4:35 PM

    • mbopp
    • Not Ranked
    • Joined on 10-30-2009, 4:24 PM
    • Posts 9

    ASP.NET site occasionally never loads at Localhost

     I have a ASP.NET site that while developing would like to run on my local instance of IIS 7.  I am running it in Classic Mode.  It works most of the time, but occasionally the site never loads no matter how long I wait.  The browser just says "Waiting for localhost...".  It does seem to happen most often after building the web application.  I understand that it takes a while to load a web app the first time after a build, but in this case it never loads.  I ultimately resolve the problem by stopping the current loading page, and trying again.  Sometimes it takes serveral attempts before successfully loading.  It is worth noting that after a build it does sometimes load, albeit a little slow as expected.

     If it matters I am running this site via Virtual Directory within the Default Website.

    I have also set the App Pool to allow 32bit.  Can anyone tell me why this is necessary.  My machine, and OS are 64 bit.

  • 11-02-2009, 8:39 AM In reply to

    Re: ASP.NET site occasionally never loads at Localhost

    mbopp:
    I have also set the App Pool to allow 32bit.  Can anyone tell me why this is necessary.  My machine, and OS are 64 bit.

    Do you have any reason to set it for 32 bit?  Such as a 32 bit DLL?  What happens if you don't set it?

    Have you tried using Request Tracing?

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 11-02-2009, 8:49 AM In reply to

    • mbopp
    • Not Ranked
    • Joined on 10-30-2009, 4:24 PM
    • Posts 9

    Re: ASP.NET site occasionally never loads at Localhost

     Ah, I bet I am using some dlls that are 32 bit.  I'm sure that is related. The error I get when not enabling 32bit is something to the effect of not having a valid win32 application.

     How do I go about using Request Tracing? And what does this help me find?

     Thanks!

  • 11-03-2009, 9:26 PM In reply to

    Re: ASP.NET site occasionally never loads at Localhost

    Hi,

    You can refer to the following article:
    Troubleshooting Failed Requests Using Tracing in IIS 7.0
    http://learn.iis.net/page.aspx/266/troubleshooting-failed-requests-using-tracing-in-iis-70/

    "Request-based tracing provides a good way to figure out what exactly is happening with your requests and why, provided you can reproduce the problem you are experiencing. Problems like poor performance on some requests, or authentication related failures on other requests, or even the server 500 error from ASP or ASP.net can often be very difficult to troubleshoot--unless you have captured the trace of the problem when it occurs. "

    You can enable the Failed Request Tracing, add a trace rule with condition: Status Codes 200-999, then reproduce this issue. We should be able to find more clues by analyzing the output in %systemdrive%\inetpub\logs\FailedReqLogFiles\W3SVC+n directory.

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 11-04-2009, 7:55 AM In reply to

    • mbopp
    • Not Ranked
    • Joined on 10-30-2009, 4:24 PM
    • Posts 9

    Re: ASP.NET site occasionally never loads at Localhost

    Thanks, hopefully doing some tracing will get me closer to the answer.  It's very strange to me that I continue to have this 'hanging' request problem.  And it is so inconsistent, though as I mentioned seems to most often happen after a code rebuild.  My concern is that even tracing won't tell me much since it's not "failing" rather just "hanging" and everything seems to just pause.  

  • 11-04-2009, 11:03 AM In reply to

    • mbopp
    • Not Ranked
    • Joined on 10-30-2009, 4:24 PM
    • Posts 9

    Answered Re: ASP.NET site occasionally never loads at Localhost

    Ah, Firefox!!!

    after using tracing and seeing nothing, It occured to me "what if it's a browser issue?"  So I've been using in IE with no problems. So now I just need to find out why Firefox is acting this way... Bad plugin? Perhaps something related to my newly installed 64bit Win 7 setup. 

     In any case, this takes the conversation away from what this forum is for so thanks for the help, and I'll leave it at that :).

  • 11-05-2009, 4:01 PM In reply to

    • mbopp
    • Not Ranked
    • Joined on 10-30-2009, 4:24 PM
    • Posts 9

    IE works, Firefox and Chrome wait for localhost indefinately

    IE works, Firefox and Chrome "wait for localhost..." indefinately. Again, this doesn't happen every request, but just every once in a while.  So I don't know if this is an IIS thing or something else related to windows 7.

     Any ideas?  please?

  • 11-05-2009, 8:41 PM In reply to

    Re: IE works, Firefox and Chrome wait for localhost indefinately

    As above what does teh failure request tracing say?

  • 11-05-2009, 10:10 PM In reply to

    • mbopp
    • Not Ranked
    • Joined on 10-30-2009, 4:24 PM
    • Posts 9

    Re: IE works, Firefox and Chrome wait for localhost indefinately

     It unfortunately says nothing.  Acting as though the request was never made.

  • 11-06-2009, 9:35 PM In reply to

    • mbopp
    • Not Ranked
    • Joined on 10-30-2009, 4:24 PM
    • Posts 9

    Re: IE works, Firefox and Chrome wait for localhost indefinately

     This issue aligns with this thread... http://forums.iis.net/t/1155755.aspx.  There are some good thoughts here and it appears the potential cause of this issue has been found.  However a good resolution is still missing.

Page 1 of 1 (10 items)
Microsoft Communities