Access denied to your own ASP.NET application

Every have a bad day with your ASP.NET app? Ever get the yellow screen of death with this on it:

Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\myapp\5607edd7\fc4d1071\hash.web" is denied.

If you go googling for the problem, you'll find a few suggestions, solutions, ideas, and rants. We had the same problem happen at our shop a few times in the same week. In fact, it got to the point where we (the users in the local Administrator group) couldn't even access the folders themselves.

After putting our proverbial minds to work, we did something fairly simple. We reclaimed ownership of the folders. You can do this in the security tab of the ASP.NET Temporary files directory.

  1. Right click and select "Properties"
  2. Select the "Security" tab
  3. Click on the "Advanced" button
  4. Select the "Owner" tab
  5. Select the owner (MACHINENAME\Administrators), check the "Replace owner on subcontainers and objects" and click OK

Voila. Problem gone. App working again. Everyone is happy.

Published Thursday, November 04, 2004 2:47 PM by Bil Simser

Comments

# re: Access denied to your own ASP.NET application

Wednesday, June 07, 2006 6:03 AM by Elandro
http://blogs.wwwcoder.com/deepak/archive/2004/10/14/885.aspx

# re: Access denied to your own ASP.NET application

Wednesday, August 16, 2006 3:15 AM by Manikandan
I have the same (mentioned above) problem. Actally my files are saving in the C:/inetpub/wwwroot/s" directory. After the execution i have to copy and paste it to Project Manager's system. because I can view the pages in the local url like :http://10.1.0.226/cashnet/index.aspx". While giving this, It is throwing the error.I can do the security permission through my system. how can resolve this problem? please help me. Thanks

# re: Access denied to your own ASP.NET application

Wednesday, August 16, 2006 3:16 AM by Manikandan
I have the same (mentioned above) problem. Actally my files are saving in the C:/inetpub/wwwroot/s" directory. After the execution i have to copy and paste it to Project Manager's system. because I can view the pages in the local url like :http://10.1.0.226/cashnet/index.aspx". While giving this, It is throwing the error.I can do the security permission through my system. how can resolve this problem? please help me. Thanks