ASP.net hash.web 拒絕訪問問題

來源:互聯網
上載者:User
asp.net|web|訪問|問題|asp.net|問題 在visual studuo.net中調試 asp.net程式時出現過多次“hash.web”訪問被拒絕的情況,查看程式碼又沒有發現問題,重啟IIS也不能解決,唯有重啟電腦才恢複正常。

通過百度找不到解決辦法,唯有用google搜尋一下外國網站,找到如下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 would 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【解決方案】:

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 VS .NET installation and was happily working on ASP.NET. Sometime later he was not able to debug the asp.net applications through VS .NET, changed config files ran aspnet_regiis, uninstalled VS .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 VS.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.




相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.