« Previous Next »

Answered Thread: IIS (5.1) Has Suddenly Stopped Working

Last post 11-07-2009 10:55 AM by mekbeb. 15 replies.

Average Rating Rate It (5)

RSS

Page 1 of 2 (16 items) 1 2 Next >

Sort Posts:

  • 05-22-2009, 8:16 AM

    IIS (5.1) Has Suddenly Stopped Working

    Hi,

    I have been using my XP box now for a long time to develop sites in .NET, and without warning IIS has stopped working. Here's what I know:

    http://localhost/[directoryname] returns the following:

    Failed to Connect
    Firefox can't establish a connection to the server at localhost.

    I am able to ping localhost, and it returns 127.0.0.1

    IIS default web site is running

    The service "World Wide Web Publishing" is running

    When I make a request, the IIS log looks like this:

    #Software: Microsoft Internet Information Services 5.1
    #Version: 1.0
    #Date: 2009-05-22 12:03:43
    #Fields: time c-ip cs-method cs-uri-stem sc-status
    12:03:42 192.168.1.101 GET /memoria/ 302

    I've looked up 302 and it does not make much sense, it's something about a redirect?

    I have (of course) done an IISRESET, and I've uninstalled and re-installed IIS.  No luck.

    I have not installed any new software, played with any firewall settings, updated the OS, changed any anti-virus software, or anything else that I can think of. Nothing has changed. Yesterday IIS worked fine, today... nothing.

    If anyone can help, that would be be wonderful!!

    Thanks,

    Casey

  • 05-22-2009, 9:00 AM In reply to

    • DKB
    • Not Ranked
    • Joined on 12-14-2005, 2:22 PM
    • Cape Cod Massachusetts
    • Posts 7

    Re: IIS (5.1) Has Suddenly Stopped Working

    Don't you have to do a regiis through .NET ?

     

    DKB

    DKB
  • 05-22-2009, 9:07 AM In reply to

    Re: IIS (5.1) Has Suddenly Stopped Working

     DKB,

    Not sure I understand.  I only have one version of IIS running, and, as I said, up until yesterday everything was fine... IIS was serving up pages beautifully and has been on this box for 2 years.  

    Is there something about regiis that I don't understand? How should I use it in this context?

  • 05-22-2009, 9:46 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: IIS (5.1) Has Suddenly Stopped Working

    So you're saying that the requests you make with Firefox do in fact get logged?  What happens with IE?

  • 05-22-2009, 10:13 AM In reply to

    Re: IIS (5.1) Has Suddenly Stopped Working

    tomkmvp:
    So you're saying that the requests you make with Firefox do in fact get logged?  What happens with IE?
     

    Hi Tom, your question has caused me to dig a little deeper.  It turns out that with both IE and FF, it is only logging the first attempt.  I cleared the log, rebooted the machine, tried to access localhost/memoria, and it logged it.  I then tried again and again and again.... but only the first attempt was logged.  Same results with IE and FF.

    Just for fun I also added an html file directly in the root of inetpub/www: help.html and then tried:

    http://localhost/help.html

    Nothing.  Same result.

    Seriously stumped.

    Casey

  • 05-22-2009, 10:48 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: IIS (5.1) Has Suddenly Stopped Working

    So it's still logs the same 302 status code?

    Make sure you don't have a redirect set.

  • 05-22-2009, 11:05 AM In reply to

    Re: IIS (5.1) Has Suddenly Stopped Working

    Here's something a friend just pointed out:  If I go back and look at the logs when IIS was working, a valid initial page request (http://localhost/chirohire/) looks like this (I added the bolds):

    11:54:30 169.254.106.64 GET /chirohire/ 302
    11:54:37 169.254.106.64 GET /chirohire/Default.aspx 200
    11:54:37 169.254.106.64 GET /chirohire/StyleSheet.css 200
    ... (and then all of the images for the page)

     Now that it's not working, exact same request (http://localhost/chirohire/) looks like this:

    12:03:42 192.168.1.101 GET /memoria/ 302
    .... (and then nothing)

    Why would the IP address have changed?  And why is it not resolving to 127.0.0.1? I also tried:

    http://127.0.0.1/help.html
    http://169.254.106.64/help.html

    Nothing.

    But at least this gives me something else to Google.

  • 05-22-2009, 11:11 AM In reply to

    Re: IIS (5.1) Has Suddenly Stopped Working

    tomkmvp:
    So it's still logs the same 302 status code?

    Make sure you don't have a redirect set.

     

    Tom, I didn't setup any redirects between the time it was working and when it stopped.  Could one have been created somehow?  This is seeming almost like a DNS issue.

  • 05-22-2009, 11:28 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: IIS (5.1) Has Suddenly Stopped Working

    OK - I didn't realize how IIS handles this, but when you request a folder in the browser without a file, IIS logs a 302 request then a 200 request for the default file.  So that's normal.

    The question is why does yours fail after the 302 request?

    What does your C:\windows\system32\drivers\etc\hosts file show?  What happens when you browse from another mahcine on the network?

  • 05-22-2009, 12:09 PM In reply to

    Re: IIS (5.1) Has Suddenly Stopped Working

    tomkmvp:

    OK - I didn't realize how IIS handles this, but when you request a folder in the browser without a file, IIS logs a 302 request then a 200 request for the default file.  So that's normal.

    I was just figuring that out myself.  Makes sense.

    The question is why does yours fail after the 302 request?

    What does your C:\windows\system32\drivers\etc\hosts file show?  What happens when you browse from another mahcine on the network?

     

    This is the only entry in my host file:

    127.0.0.1       localhost

    Something else I've noticed.  After booting up I went right to IIS and noticed that the default website was stopped.  I started it and then went to:

    http://localhost/help.html

    It came up!  Feeling encouraged I then tried to load a .NET site:

    http://localhost/chirohire/

    but I got the Page Load Error. I then went back to help.html and also got the Page Load Error. I then did an iisreset, went back to help.html, and it loaded.  Then I went back to the .NET site and it did not load.

    Is something about .NET messing things up?  This is weird.

  • 05-22-2009, 12:32 PM In reply to

    Re: IIS (5.1) Has Suddenly Stopped Working

     These two entries show up in the event log after trying to load a .NET page that fails:

     

    A condition has occurred that indicates this COM+ application is in an unstable state or is not functioning correctly. Assertion Failure: SUCCEEDED(hr)

    Server Application ID: {02D4B3F1-FD88-11D1-960D-00805FC79235}
    Server Application Instance ID:
    {380353F8-FF1C-4538-BB9F-18A971F31317}
    Server Application Name: System Application
    The serious nature of this error has caused the process to terminate.
    Error Code = 0x8000ffff : Catastrophic failure
    COM+ Services Internals Information:
    File: d:\qxp_slp\com\com1x\src\comsvcs\tracker\trksvr\trksvrimpl.cpp, Line: 3000
    Comsvcs.dll file version: ENU 2001.12.4414.308 shp

    -- and --

    The run-time environment has detected an inconsistency in its internal state. This indicates a potential instability in the process that could be caused by the custom components running in the COM+ application, the components they make use of, or other factors. Error in d:\qxp_slp\com\com1x\src\comsvcs\package\cpackage.cpp(1184), hr = 80080005: InitEventCollector failed

     

    In the System Log I found these (all separate entries):


    The COM+ System Application service terminated unexpectedly.  It has done this 1 time(s).  The following corrective action will be taken in 1000 milliseconds: Restart the service.

    The IIS Admin service terminated unexpectedly.  It has done this 9 time(s).

    The Simple Mail Transfer Protocol (SMTP) service terminated unexpectedly.  It has done this 7 time(s).

    The World Wide Web Publishing service terminated unexpectedly.  It has done this 9 time(s).

    The COM+ System Application service entered the running state.

    The COM+ System Application service terminated unexpectedly.  It has done this 2 time(s).  The following corrective action will be taken in 5000 milliseconds: Restart the service.

    The COM+ System Application service entered the running state.

    The COM+ System Application service terminated unexpectedly.  It has done this 3 time(s).

  • 05-22-2009, 1:34 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: IIS (5.1) Has Suddenly Stopped Working

    ccrookston:
    I then tried to load a .NET site:

    http://localhost/chirohire/

    but I got the Page Load Error.

    Please post the full error message.

  • 05-22-2009, 2:51 PM In reply to

    Re: IIS (5.1) Has Suddenly Stopped Working

    tomkmvp:

    ccrookston:
    I then tried to load a .NET site:

    http://localhost/chirohire/

    but I got the Page Load Error.

    Please post the full error message.

     

     

    Same as before.

    Failed to Connect
    Firefox can't establish a connection to the server at localhost.

    I've figured out the problem. COM+ is corrupt and needs to be reinstalled.  Just not sure of the best way to go about that.

  • 05-23-2009, 12:26 AM In reply to

    Answered Re: IIS (5.1) Has Suddenly Stopped Working

    Problem solved!

    For anyone who may come here in the future looking to solve the same problem, here's the solution:  You need to uninstall and then re-install COM +

    Follow these steps:

    1) You need to re-register oleaut32.dll and oleaut32.dll.  From a command prompt, type these two lines:

    regsvr32 "C:\program files\common files\system\ole db\oleaut32.dll"

    regsvr32 "C:\windows\system32\oleaut32.dll"


    2) Next, remove and then re-install COM+ by follow the steps outlines here:

    How to clean up a damaged COM+ catalog
    http://support.microsoft.com/default.aspx?scid=kb;en-us;315296

    The article says this only applies to 2000, but I did it on XP Pro and it worked.  If, during the process of re-installing COM+ you are asked for a Windows XP SP2 CD, and if you don't have one, then use this very helpful tip:

    How to How to Install IIS on Windows XP SP2 Without CD
    http://ezinearticles.com/?Guide---How-To-Install-IIS-on-Windows-XP-SP2-Without-CD&id=416853

    If these steps do not work, then find a Windows Install CD and repair the install.  Don't wipe and start over, just use the CD to do a repair.

    I hope this helps someone else some day!

    Casey Crookston

  • 05-23-2009, 12:32 AM In reply to

    Re: IIS (5.1) Has Suddenly Stopped Working

    One last thing.... Just in case the links I provided ever go dark some day, here's the text:

    To clean up a damaged COM+ catalog, follow these steps:

    1. Rename the %WinDir%\System32\Clbcatq.dll file to %WinDir%\System32\~Clbcatq.dll. Make sure that you include the tilde (~) at the start of the file name.
    2. Restart the computer.
    3. Start Registry Editor (Regedt32.exe).
    4. Locate and delete the following key in the registry:
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3
    5. At a command prompt, type cd %windir%, and then press ENTER.
    6. At a command prompt, type rmdir /s Registration, and then press ENTER. This is the location folder of the registration database.

      Note If you have MS04-012 installed, you must now re-install MS04-012. For more information about security update MS04-012, click the following article number to view the article in the Microsoft Knowledge Base:
      828741  (http://support.microsoft.com/kb/828741/ ) MS04-012: Cumulative Update for Microsoft RPC/DCOM
    7. Click the Start button, point to Settings, and then click Control Panel.
    8. Double-click Add/Remove Programs, and then click Add/Remove Windows Components.
    9. Click Next to go through the reinstallation process, to reinstall COM+.
    10. If IIS is installed on the computer, IIS creates several COM+ applications. These applications will now be missing. To re-create these applications, run the following command at a command prompt:
      rundll32 %windir%\system32\inetsrv\wamreg.dll, CreateIISPackage

     

    Here are the steps you can follow to install IIS (or in our case COM+) without having a Windows XP SP2 CD:

    1. Download the XP SP2 installation file (www.softwarepatch.com/windows/xpsp2.html) if you do not already have.
    2. Extract the content of the file into a folder using WinRar (www.win-rar.com) or similar compression software; (I did this by just double clicking on the downloaded .exe file and then taking note of where it was extracting the files. If you do this, just abort the install after the extracting is done and before the actual install begins.)
    3. Start installing IIS using standard procedure (Control Panel > Add and Remove Programs > Windows Components)
    4. When it prompts for source folder, browse for the I386 folder that you extracted earlier
    5. When it prompts for missing files, browse I386 and its sub-folders for them.
Page 1 of 2 (16 items) 1 2 Next >
Microsoft Communities