IIS 8 Application Pool Won’t Start

Problem

I have a clean installation of Windows 8.1 and have installed IIS. When attempting to serve any files, the application pool fails and stops.

Investigation into the system event log reveals:

Application pool ‘DefaultAppPool’ is being automatically disabled due to a series of failures in the process(es) serving that application pool.

Source: WAS
Event ID: 5002

Investigation into the application event log reveals this warning:

Windows cannot copy file \\?\C:\Users\Default\AppData\Local\Microsoft\VSCommon\12.0\SQM\sqmdata-3252-039-00000.sqm to location \\?\C:\Users\TEMP\AppData\Local\Microsoft\VSCommon\12.0\SQM\sqmdata-3252-039-00000.sqm. This error may be caused by network problems or insufficient security rights.

DETAIL – Access is denied.

as well as this error:

Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, and that your network is functioning correctly.

DETAIL – Only part of a ReadProcessMemory or WriteProcessMemory request was completed.

Solution

I’ve found three solutions (workarounds) to this problem (it seems to be a bug with a VS 2013 update or a Windows update).

  1. Change the permissions of the .sqm file so that your account can read it (I set it to inherit parent permissions).  This worked for me.  OR,
  2. Delete the .sqm file (I have not tested this but it is referenced as working in a stackoverflow post).  OR,
  3. Change the “Load User Profile” property of the application pool (advanced settings) to False.  This worked for me as well, but you’re dropping down to IIS 6 behavior.  I don’t honestly know the true impact of this, but it didn’t seem like the best idea.

Investigation

I’m fairly certain this is a known bug and it has been addressed.  That said, my machine is up to date with the latest Windows updates as is running VS 2013 Update 4, so I’m not certain it has been fixed.  That or I haven’t run the right updates.  Whatever, I don’t really have time to do more research into this.

References

  1. microsoft connect
  2. stackoverflow

I hope this helps someone.

Happy Coding,
Tom Hundley

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s