Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 7 and 503 error for file copy access denied problem

I'm running Windows 7 SP 1 and have just turned on IIS 7. Just trying to access the default page it creates I get a 503 error, and the application pool stops. I look in the event log and I find the error:

Windows cannot copy file \?\C:\Users\Default\AppData\Local\Microsoft\Windows\Temporary Internet Files\SQM\iesqmdata_setup0.sqm to location \?\C:\Users\TEMP.IIS APPPOOL.000\AppData\Local\Microsoft\Windows\Temporary Internet Files\SQM\iesqmdata_setup0.sqm. This error may be caused by network problems or insufficient security rights.

DETAIL - Access is denied.

I tried making the TEMP.IIS APPPOOOL.000 folder available to everyone. I tried making Users available to everyone. No luck, it still dies with the same error.

What is happening here, and how can it be fixed?

like image 414
Jay Avatar asked Aug 20 '11 23:08

Jay


2 Answers

It sounds like you're having the same problem as details in this IIS.NET forums thread. You didn't mention if you have x64 Windows 7 or not. Suspect that your development machine is misconfigured somehow; sounds like the uninstallation and reinstallation of IIS7 would help/fix.

Suggested courses of action:

  • Open IIS and its Application Pools. Open "DefaultAppPool" and any other Application Pools in use.
  • Click Advanced Settings for each of these. Ensure the "Load User Profile" is set to 'False'
  • Also ensure that the "Set Application Pool Defaults" has the Load User Profile set to False."
like image 65
p.campbell Avatar answered Oct 13 '22 19:10

p.campbell


I encountered the same problem in my development environment (Windows 8.1). Instead of disabling the load user profile as suggested by P.Campbell, I went ahead and changed the permission of the sqm file to allow modify accesses for IUSR, IIS_IUSRS and Network Service. In my case, the sqm file was not able to show me the file owner in which I taken over with my user account.

Basically, my problem was solved by giving the correct permission for both source and destination files/folders.

like image 31
Karlo Medallo Avatar answered Oct 13 '22 19:10

Karlo Medallo