When debugging the Asp.net program in visual studuo.net, "hash. web "access is rejected, check the program code and find no problems, restart IIS cannot solve, only restart the computer to restore normal.
Baidu cannot find a solution. Google can only search for foreign websites and find the following tips:
Http://blogs.wwwcoder.com/deepak/archive/2004/10/14/885.aspx
Access to the path containing 'hash. web' is getting denied.
After installing Visual Studio. net and F5 a couple of times, I used to get this error frequently. the only resolution was to wait for upto 5 to10 mins or restart system, since a folder in temporary ASP. net files containing web. config gets locked up automatically.
After searching a while in KBS, forums, I found one closest matching solution, which solved my problem. just wanted to share with other readers who wocould also be experiencing this issue. the problem occurs significantly if you touch web. config and ASP. net has significant memory consumption (as seen in Windows Task Manager)
There is a service called indexing service which runs in the system. during F5, Asp. net tries to JIT compile the new DLL (as my understanding goes) And when simultaneously ASP. net and indexing service goes to the specified set of cache files, the deadlock occurs and ASP. net throws this exception.
Solutions [solution ]:
Keep Indexing Service Manual or stop it
In Indexing Service preferences, make C:/winnt/Microsoft. NET to be excluded or placed in the exclusion catalog so that Indexing Service will not access this location.
---
Actually this solved another problem we are facing here. Thanks for the tip. The problem is like this:
One of the collegues @ my work place had a working. net installation and was happily working on ASP. net. sometime later he was not able to debug the Asp.net applications through. net, changed config files ran aspnet_regiis, uninstalled. net and reinstalled it completely so many times. no use, nada, zilch. so, we finally said "Take care" that workstation, and gave him another one. now after reading your post, I found Indexing Service was running on that machine. so I stopped it, reinstalled. net and it is fine. just fine. thanks for the tip.
------------------------------------
Http://weblogs.asp.net/bsimser/archive/2004/11/04/252512.aspx
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.
- Right click and select "properties"
- Select the "Security" tab
- Click on the "advanced" button
- Select the "owner" tab
- 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.