莫名其妙的配置错误之解决方案!!!(终于解决了)

目前老是被下面的问题所困扰

每次文件被锁住的地方不尽相同,有时通过重启IIS可以解决,有时只能通过RESTART机器解决,非常非常的浪费我的时间,这是FRAMEWORK自身的问题还是我的程序问题?

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

分析器错误信息: 访问被拒绝:“WebControls.ConfirmedButtons”。

源错误:


行 196:    
行 197:    
行 198:    
行 199:   
行 200:  
 

源文件: c:/windows/microsoft.net/framework/v1.1.4322/Config/machine.config    行: 198

程序集加载跟踪: 下列信息有助于确定程序集“WebControls.ConfirmedButtons”无法加载的原因。


=== Pre-bind state information ===
LOG: DisplayName = WebControls.ConfirmedButtons
 (Partial)
LOG: Appbase = file:///D:/Project2003/Tangram.NET/WebUIProjects/Web
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: WebControls.ConfirmedButtons
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/8bc8dcdd/2f9d447f/WebControls.ConfirmedButtons.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/8bc8dcdd/2f9d447f/WebControls.ConfirmedButtons/WebControls.ConfirmedButtons.DLL.
LOG: Attempting download of new URL file:///D:/Project2003/Tangram.NET/WebUIProjects/Web/bin/WebControls.ConfirmedButtons.DLL.
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/aspnet.config).
LOG: Using machine configuration file from C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/config/machine.config.
LOG: Post-policy reference: WebControls.ConfirmedButtons, Version=1.0.311.0, Culture=neutral, PublicKeyToken=022a76aae3598387


 

Wednesday, November 19, 2003 5:21 PM

 

解决方案参见微软知识库:

PRB: Access Denied Error When You Make Code Modifications with Index Services Running
http://support.microsoft.com/default.aspx?scid=kb;en-us;329065

 

 

CAUSE

If you run Index Server (Cisvc.exe), then Index Server may rescan the Temporary ASP.NET Files directory while it requests a Microsoft ASP.NET page. Cisvc.exe then holds a lock on the Temporary ASP.NET Files directory for one to five minutes. The length of time of the lock depends on the size of the directory that causes the Aspnet_wp.exeprocess (or W3wp.exe process for applications that run on Microsoft Internet Information Services [IIS] 6.0) to not load the particular DLL.

RESOLUTION

If you do not use Index Server on the server, you can disable it. To do so, follow these steps:
  1. Click Start, and then click Services.
  2. Locate Indexing Service from the list of services, and then click Indexing Service Properties from the subform.
  3. On the General tab of the Indexing Service Properties dialog box, in the Startup type drop-down item list, click Disabled.
  4. Click OK.

If you use Index Server, you can exclude the Temporary ASP.NET Files directory from the folders that the Index Server scans. To do so, follow these steps:
  1. Click Start, point to All Programs, point to Administrative Tools, and then click Computer Management.
  2. Expand the Services and Applications node, expand the Indexing Service node, and then expand the System node.
  3. Right-click the Directories folder, point to New, and then click Directory from the subform to open the Add Directory dialog box.
  4. Click Browse, and then locate the Temporary ASP.NET Files directory. You typically find the Temporary ASP.NET files in the following path: c:/ /Microsoft.NET/Framework/ /Temporary ASP.NET Files
    Note is the version of .NET Framework installed on your computer.
  5. Click No under the Include in Index? option buttons.
  6. Click OK to close.
  7. Close the Computer Management dialog box.
  8. Restart the Indexing Services service.

MORE INFORMATION

Other software that is designed to scan directories at regular intervals may lock the files that are located in the Temporary ASP.NET Files directory in a manner that is similar to how the Indexing Service locks the files. Examples of such software include virus scanners and backup software. Microsoft recommends that you see the manufacturers' manuals for the individual software for information about how to disable or to exclude the Temporary ASP.NET Files from these services.

 

href="http://blog.joycode.com/spider/Services/Pingback.aspx" rel="pingback">
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值