首页 > 资讯 > 网站设计
项目调试时出现用到的一个组件“访问被拒绝”的解决方法
发布时间:2008-04-25   浏览次数:1153280

项目调试时出现用到的一个组件“访问被拒绝”的解决方法

“/”应用程序中的服务器错误。

配置错误

字串2

说明:在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。

字串9

分析器错误信息: 访问被拒绝:“XpAspVNo”。 字串8

源错误: 字串1

行 196:    <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> 字串9

行 197:    <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

字串1

行 198:    <add assembly="*"/>

字串7

行 199:   </assemblies> 字串8

行 0:  </compilation>

字串4

源文件:c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config    行:198 字串8

程序集加载跟踪:下列信息有助于确定程序集“XpAspVNo”无法加载的原因。 字串8

以下为引用的内容:
=== Pre-bind state information ===
LOG: DisplayName = XpAspVNo
 (Partial)
LOG: Appbase = file:///F:/AspWeb/TYJD/
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: CSDN.Authentication
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/3151f96f/581ce000/XpAspVNo.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/3151f96f/581ce000/XpAspVNo/XpAspVNo.DLL. 字串4
LOG: Attempting download of new URL file:///F:/AspWeb/TYJD/bin/XpAspVNo.DLL.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: CSDN.Authentication, Version=1.0.1965.30523, Culture=neutral, PublicKeyToken=null
------------------------------------------------------------------
字串8

版本信息: Microsoft .NET Framework 版本:1.1.4322.2300; ASP.NET 版本:1.1.4322.2300

字串1

原因:

字串5

由于改动频繁,  c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\ 目录下相应的目录或文件被Index Server锁定,重建索引。所以一般几分钟后会释放,恢复正常。(没弄明白之前,害我重起站点,重起IIS,关闭vs.net,调整SQL SERVER,好不忙乎,而且似乎也有用,但是治标不治本。现在终于明白了。

字串3

解决方案一:

字串6

停用Indexing service 字串2

解决方案二: 字串7

配置ASP.net 的临时目录不受Indexing service服务的影响: 字串4

1、开始 -- 管理工具 -- 计算机管理(Win03的位置,其他操作系统类似)打开计算机管理

字串8

2、展开计算机管理左边树中“服务和应用程序”节点,再在其下展开“索引服务”节点,再在其下展开“System”节点,再在其下展开“目录”节点。 字串9

3、在计算机管理的右边我们可以看到配置的索引服务目录。

字串6

4、在“目录”节点上右击鼠标,选择“新建”--“目录” 字串6

5、在“添加目录”对话框中,路经输入框中输入 ASP.net 的临时文件目录。默认应该是:

字串7

c:\Windows\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files  目录。

字串6

6、在“包含在索引中吗?”选项中,选择“否” 字串8

7、单击“确定”按钮

字串7

8、在“索引服务”节点上右键单击,重起索引服务即可。

业务咨询

Copyright 2003 - 2023 huinet.cn All Rights Reserved.
慧网公司 版权所有