asp.net程式編譯調試時偶爾出現訪問被拒絕的錯誤
問題描述:編寫asp.net程式,當編譯調試比較頻繁的時候,很容易經常地出現訪問被拒絕。形如:
分析器錯誤資訊: 訪問被拒絕:“Microsoft.Web.UI.WebControls”。
源錯誤:
行 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
行 198: <add assembly="*"/>
.....
源檔案: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config 行: 198
原因:
由於改動頻繁, c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\ 目錄下相應的目錄或檔案被Index Server鎖定,重建索引。所以一般幾分鐘後會釋放,恢複正常。(沒弄明白之前,害我重起網站,重起IIS,關閉vs.net,好不忙乎,而且似乎也有用,(現在知道是把時間給賺足了-_-''),但就是治標不治本。現在終於明白了,一下子整個世界都清靜了。哈哈)
解決方案:
方法一:如果不用Index Server關了它。(服務裡關閉,最好禁用,那以後都清靜了。)
方法二:配置Index Server不對該目錄進行索引。
(這個問題著實令我頭痛了好一陣子,病著又病不死人的樣子。現在神清氣爽,所以不敢獨享,分與諸君說。)
網站後台主要用的FCKeditor.dll,不知道從何時起出了這個毛病,一直到項目結束。一直有這個BUG,我急死了。。謝天謝地。終於在網上找到了類似問題。。配置錯誤 說明: 在處理向該請求提供服務所需的設定檔時出錯。請檢查下面的特定錯誤詳細資料並適當地修改設定檔。分析器錯誤資訊: 訪問被拒絕:“FredCK.FCKeditorV2”。 源錯誤:
行 196: <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> 行 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> 行 198: <add assembly="*"/> 行 199: </assemblies> 行 200: </compilation>
|
源檔案: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config 行: 198 程式集載入跟蹤: 下列資訊有助於確定程式集“FredCK.FCKeditorV2”無法載入的原因。
=== Pre-bind state information === LOG: DisplayName = FredCK.FCKeditorV2 (Partial) LOG: Appbase = file:///C:/Documents and Settings/Administrator/案頭/zcw 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: FredCK.FCKeditorV2 LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/zcw/f61b1adf/d1f5d9bc/FredCK.FCKeditorV2.DLL. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/zcw/f61b1adf/d1f5d9bc/FredCK.FCKeditorV2/FredCK.FCKeditorV2.DLL. LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator/案頭/zcw/bin/FredCK.FCKeditorV2.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: FredCK.FCKeditorV2, Version=2.2.2106.29420, Culture=neutral, PublicKeyToken=4f86767c9b519a06
|
解決方案: 1.進入 控制台-〉管理工具-〉服務,找到Indexing Service並點擊右鍵將其停止. 或者: 2.可以在MS-DOS下輸入 Net stop cisvc 命令禁止! 【我沒嘗試】 |