小弟是一个ASP.net新手,最近我用VS 2003进行ASP.net的程序时,发现经常出现一个
这样的问题就是打开IE输入所要显示的页面时,出现类似于
xxxx\xxx\hash.web不可访问的问题,它提示要授与访问的权利,而我去访问此目录,也无法打开
这个问题是随机出现的,一般开始编译几次都没有问题,但是再过几次就会出现。把系统重启后,
又能正常访问。不知道是什么原因?
不知道大家有没有这样的问题,是我的VS 2003的问题还是系统本身的问题?请高手指教 ,先谢了!

解决方案 »

  1.   

    这个问题我觉得应该是系统安装其他软件 冲突等造成的 我也遇到过 不过没能解决 重装 .NET都不行!帮你定  希望能找出答案
      

  2.   

    在本机上调试web应用程序的时候,要观察一下ie浏览器是否把 localhost 识别为“本地”。如果识别为 internet,那么调试状态下就会经常出现页面跟踪访问的问题,轻者会使跟踪变得很慢。
      

  3.   

    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Fileswin 2000/xp 这个目录必须有asp_net 和 iis_SERVNAME 完全控制权限
    win 2003 下必须有asp_net 和 iis_wpg 完全控制权限
      

  4.   

    不好意思,写错了,应该是win 2003 下必须有 Network Service 和 iis_wpg 完全控制权限且不能是拥有只读属性
      

  5.   

    但我比较奇怪的是,如果没有控件权限,应该是所有编译后的应用均应
    不能显示,而是间或地出现,但实际上有时候把web.config改一改,又
    能用了。
    个人觉得应该是一个BUG,或者是微软没有讲清楚。
      

  6.   

    我在网上找到方法了,原因并不是没有权限,而是当索引服务与即时编译产生了冲突,
    因此在编译调试期间,停止索引服务就可以了, 在程序发布后,再开启就好了。
    我正准备试试看是不是这样的,呵呵,还是感谢几位,如果方法是正确的,我就会结贴
    如果方法不正确,还是需要继续发贴。
    以下是英文原文,懒得翻了,大家凑合着看吧 Access to the path containing 'hash.web' is getting denied...
    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.
      

  7.   

    原文请见
    http://blogs.wwwcoder.com/deepak/archive/2004/10/14/885.aspx