欢迎光临
我们一直在努力

ASP.net "hash.web" 拒绝访问问题-ASP教程,ASP应用

建站超值云服务器,限时71元/月

在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, youll 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) couldnt 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.

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » ASP.net "hash.web" 拒绝访问问题-ASP教程,ASP应用
分享到: 更多 (0)