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.
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.
I’ve found three solutions (workarounds) to this problem (it seems to be a bug with a VS 2013 update or a Windows update).
- 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,
- Delete the .sqm file (I have not tested this but it is referenced as working in a stackoverflow post). OR,
- 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.
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.
I hope this helps someone.