LiveCompare/IIS Reset

LiveCompare depends on Internet Information Server (IIS). During install/uninstall, LiveCompare resets IIS to ensure file locks are cleared. We've noticed an issue with the web server service (w3svc) getting stuck during the reset request.

Reading:

https://forums.iis.net/t/1239061.aspx?IISRESET+results+in+W3SVC+stuck+in+stopping+status+after+July+2018+patches

points to hot fixes for the different versions of Windows:

This problem will manifest itself in several ways:

  • LiveCompare's install program will take longer than usual to start installing files - it's waiting for the reset IIS request to complete which eventually times out.
  • LiveCompare's configuration wizard will hang during the configuration of the LiveCompare web app - it's sending commands to IIS that go unanswered (because it is hung). Eventually the wizard will finish with errors or be terminated by Windows.

You can confirm IIS is hung in a "stopping" state using the command line utility SC.EXE:

  1. Take remote control of your LiveCompare server.
  2. Open an elevated 'cmd' prompt.
  3. Enter: sc query w3svc

If you see:

SERVICE_NAME: w3svc
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 3  STOP_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x3
        WAIT_HINT          : 0x4e20

Then your system is affected by the IIS reset bug.

The only recourse is to reboot the server. And then apply the appropriate hotfix.

For LiveCompare 3.9 we are evaluating other ways to unhook LiveCompare from IIS so that the configuration/deconfiguration/install/uninstall doesn’t have to use reset IIS.