開發基於Asp.Net的系統,最初使用Rad Treeview 2.5,經常會出現控制無法載入的情況。原以為是控製本身的問題,但後來將Rad Treeview升級到3.0版,還是無法解決。去Terelik官方網站看了FAQ,沒有提到這個問題。
後來發現,當出現控制項無法載入的情況之後,只要Restart系統,或等一會兒重新編譯執行程序,控制項無法載入的情況就消失了。難道是Framework的問題?怕我們程式設計太累,讓我們中間休息一下?鬱悶.......
今天偶然間發現如下一篇文章,照之做了之後,問題解決~哈
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 ations that run on Microsoft Internet Information Services [IIS] 6.0) to not ations the partic .
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, andstrative 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.NETFramework\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. lesles ofclers in softlocks the files. softles ofclus softlocks the files. softles ofclus softlocks the files。 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.
原來是索引服務引起的故障~