程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> .NET網頁編程 >> .NET實例教程 >> Asp.Net控件加載錯誤的解決方法

Asp.Net控件加載錯誤的解決方法

編輯:.NET實例教程

開發基於ASP.Net的系統,最初使用R.a.d Treeview 2.5,經常會出現控件無法加載的情況。原以為是控件本身的問題,可後來將R.a.d TreevIEw升級到3.0版,還是無法解決。去Terelik官方網站看了F.A.Q,也沒有提到這個問題。

後來發現,當出現控件無法加載的情況之後,只要Restart系統,或者等一會兒重新編譯執行程序,控件無法加載的情況即消失了。難道是Framework的問題?怕我們編程太累,讓我們中間休息一下?郁悶.......

今天偶然間發現如下一篇文章,照之做了之後,問題解決~哈


PRB: Access DenIEd Error When You Make Code Modifications with Index Services Running

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:

Click Start, and then click Services.
Locate Indexing Service from the list of services, and then click Indexing Service PropertIEs from the subform.
On the General tab of the Indexing Service PropertIEs dialog box, in the Startup type drop-down item list, click Disabled.
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:

Click Start, point to All Programs, point to Administrative Tools, and then click Computer Management.
Expand the Services and Applications node, expand the Indexing Service node, and then expand the System node.
Right-click the DirectorIEs folder, point to New, and then click Directory from the subform to open the Add Directory dialog box.
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.
Click No under the Include in Index? option buttons.
Click OK to close.
Close the Computer Management dialog box.
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.

原來是索引服務引起的故障~~

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved