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

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

Monday, October 04, 2010 6:04 AM by #

I also encountered that and after googling i found a solution:

Right Click on My Computer

-> Select Manage

-> under Services and Applications

-> expand Indexing Service

-> right click on System

-> New

-> Directory

-> Browse the folder (C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\myapp\5607edd7\fc4d1071) then click ok.

Note: Stop and Play Index Service once the above step is done. Cheers!

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

Sunday, January 09, 2011 5:43 AM by Shweta

I have the similar problem. Trying to use Hit Counter in application using Text File but Getting exception as Access Denied to Path. The text file is located in the root directory.

I dont see any properties option while right click on the file, to change acces settings. Please suggest the solution.

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

Thursday, February 17, 2011 3:22 PM by Wooper

Well still not working any solution i have tried, any other suggestions?

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

Monday, March 07, 2011 7:32 AM by johnklerk

it worked! thanks!

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

Tuesday, August 30, 2011 3:46 PM by Chad

To stop getting this error, I had a user specified in the identity like <identity impersonate="true" userName="domain\username" password="blahblahblah" /> and once the userName/password was removed the application would compile

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

Wednesday, December 21, 2011 10:22 AM by Ashish

It's working fine with me

Leave a Comment

(required) 
(required) 
(optional)
(required)