ASP.net hash.web 拒绝访问问题

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.

时间: 2024-09-16 13:57:16

ASP.net hash.web 拒绝访问问题的相关文章

ASP.net "hash.web" 拒绝访问问题

在visual studuo.net中调试 asp.net程序时出现过多次"hash.web"访问被拒绝的情况,查看程序代码又没有发现问题,重启IIS也不能解决,唯有重启电脑才恢复正常.通过百度找不到解决办法,唯有用google搜索一下外国网站,找到如下tips:http://blogs.wwwcoder.com/deepak/archive/2004/10/14/885.aspxAccess to the path containing 'hash.web' is getting d

ASP.NET 拒绝访问

asp.net|访问 使用MICROSOFT的com组件编写插入数据到EXCEL然后再下载到客户机本机程序,在开发时测试通过,上传到WIN2000服务器上后出现如下错误:  Server Error in '/Webqr' Application. --------------------------------------------------------------------------------拒绝访问. Description: An unhandled exception occ

ASP.NET中利用SQLXML WEB服务访问XML数据

asp.net|sql|web|web服务|xml|访问|数据      引言 使用SQLXML 的Web 服务从你的ASP.net应用程序中直接访问XML 数据       SQLXML 是扩展SQL 服务器现有的对检索和储存XML 数据的支持的一套附加的工具. 有了SQLXML 3.0,你现在就能使用SQL服务器展示Web 服务了.在SQLXML的Web 服务可以让用户执行存储过程,用户定义的功能,并且它们支持模板.       在这篇文章中,你将看出怎样展示一个作为Web 服务并构建一个简

用ASP实现对Web搜索引擎Index Server的访问

摘要:Index Server是专门为企业Web网站设计的专业搜索引擎,传统的访问方法HTML/IDQ/HTX由于固有的特性,缺乏灵活性.本文介绍用ASP实现对Index Server访问的两种方法,以及如何实现复杂查询,和对查询结果的控制. 关键字:Index Server ASP ADO  在电子商务方兴未艾的今天,企业上网不但是为了展示企业形象,提高知名度:也意味着无穷的商机与财富.而内部网Intranet则为企业带来了全新的沟通方式和管理理念.因此构建企业Web站点已经排上了许多企业信息

解决ASP.NET创建的线程的用户改变引发的拒绝访问错误

asp.net|创建|错误|访问|解决 解决ASP.NET创建的线程的用户改变引发的"拒绝访问"错误                ASP.NET创建的线程的用户由<identity impersonate="true"/> 改为NT AUTHORITY\NETWORK SERVICE, 引起"System.UnauthorizedAccessException","拒绝访问"     Dim thr As Thr

ASP.NET拒绝访问临时目录的解决方法_实用技巧

今天把博客程序部署到一台阿里云Windows主机上,通过浏览器访问时出现下面的错误: 复制代码 代码如下: 创建 BlogConfigurationSettings 的配置节处理程序时出错: 拒绝访问临时目录.以其运行 XmlSerializer 的身份"IIS APPPOOL\www.cnblogs.com"没有足够的权限访问临时目录.CodeDom 将使用此进程用于进行编译的用户帐户,因此如果用户对系统临时目录没有访问权限,则将无法编译.使用 Path.GetTempPath()

【求助】asp.net点击页面报 参数不匹配和 拒绝访问报错误是怎么回事?

问题描述 我点击页面的时候总是弹出参数不匹配和拒绝访问的警告错误,查了很多也看到别人也有我这种错误,可是还是没有解决.希望大家帮帮忙看看. 解决方案 解决方案二: 有些DOM或者JS里面变量为空之类引起的.你直接浏览看有没有问题.应该不影响运行的

CS0016: 未能写入输出文件...\App_Web_default.aspx.cdcab7d2.zii776dc.dll”--&quot;拒绝访问。 &quot;

Asp.net部署后访问网站出现问题(Windows 7 旗舰版): CS0016: 未能写入输出文件"c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\web\4b49f661\23a749fc\App_Web_default.aspx.cdcab7d2.zii776dc.dll"--"拒绝访问. " 解决方法:  找到C:\Windows\Temp 目录,在其属性->

IIS教程:因权限问题被拒绝访问的解决方案

 写了一个类IISAdmin,负责建立.设置.删除虚拟目录,发现在web中调用,遇到权限问题,解决方法如下(转载): 下面代码在ASP.NET中,会因权限问题被拒绝访问.  以下为引用的内容: System.DirectoryServices.DirectoryEntry directoryEntry;  directoryEntry = new System.DirectoryServices.DirectoryEntry("IIS://localhost/w3svc/1");  d