文章編號: 329065 - 上次校閱: 2005年11月9日 - 版次: 3.2 PRB:在執行索引服務時修改程式碼發生拒絕存取的錯誤
徵狀 當您在 AppDomain 載入後存取頁面,例如在 執行 Microsoft 索引服務的電腦上修改 Bin 目錄或
Web.config 檔案時,可能會收到下列的錯誤訊息: '/MyWebApp' 應用程式中的伺服器錯誤設定錯誤描述:處理服務這個請求所需的設定檔案期間發生錯誤。請檢視下列特定錯誤的詳細資料,並適當地修改您的設定檔案。剖析器錯誤訊息:拒絕存取:'mydll'。 來源錯誤: Line 169:<add assembly=<System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a>/> Line 170:<add assembly=<System.EnterpriseServices, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a>/> Line 171:<add assembly=<*>/> Line 172:</assemblies> Line 173: 版本資訊Microsoft .NET Framework 版本:1.0.3705.0;ASP.NET 版本:1.0.3705.0 [FileLoadException]:Access is denied:'MyWebApp'.<BR/> at System.Reflection.Assembly.nLoad(AssemblyName fileName, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)<BR/> at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)<BR/> at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark)<BR/> at System.Reflection.Assembly.Load(String assemblyString)<BR/> at System.Web.UI.CompilationConfiguration.LoadAssemblies(Hashtable original)<BR/> [ConfigurationException]:Access is denied:'MyWebApp'.<BR/> (d:\winxp\microsoft.net\framework\v1.0.3215\Config\machine.config line 145)<BR/> at System.Web.UI.CompilationConfiguration.LoadAssemblies(Hashtable original)<BR/> at System.Web.UI.CompilationConfiguration.get_Assemblies()<BR/> at System.Web.UI.CompilationConfiguration.GetAssembliesFromContext(HttpContext context)<BR/> at System.Web.UI.TemplateParser.AppendConfigAssemblies()<BR/> at System.Web.UI.TemplateParser.PrepareParse()<BR/> at System.Web.UI.TemplateParser.Parse()<BR/> at System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation()<BR/> at System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound)<BR/> at System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath()<BR/> at System.Web.UI.TemplateParser.GetParserCacheItem()<BR/> at System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String inputFile, HttpContext context, ApplicationFileParser& parser)<BR/> at System.Web.HttpApplicationFactory.CompileApplication(HttpContext context)<BR/> at System.Web.HttpApplicationFactory.Init(HttpContext context)<BR/> at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)<BR/> at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) 發生的原因 如果您執行索引服務 (Cisvc.exe),那麼索引服務可能會在要求 Microsoft ASP.NET
頁面時重新掃瞄 Temporary ASP.NET 檔案。接著 Cisvc.exe 會在 Temporary ASP.NET
檔案目錄上保持鎖定一至五分鐘。鎖定的時間長短依造成 Aspnet_wp.exeprocess (或在 Microsoft Internet
Information Services [IIS] 6.0 上執行的 W3wp.exe process) 不載入特定 DLL
的目錄大小而定。 解決方案 如果您沒有在伺服器上使用索引服務,您可以將它停用。如果要執行這項操作,請依照下列步驟執行:
如果您使用索引服務,您可以從索引服務掃瞄的資料夾中排除 Temporary ASP.NET 檔案目錄。如果要執行這項操作,請依照下列步驟執行:
其他相關資訊 其他會定期掃瞄目錄的軟體,可能會以類似索引服務鎖定檔案的方式,鎖定位在 Temporary ASP.NET
檔案目錄的檔案。這類軟體包括病毒掃瞄程式和備份軟體。Microsoft 建議您參閱個別軟體的製作商手冊,獲得如何從這些服務停用或排除 Temporary
ASP.NET 檔案的資訊。
Microsoft及(或)其供應商不就任何在本伺服器上發表的文字資料及其相關圖表資訊的恰當性作任何承諾。所有文字資料及其相關圖表均以「現狀」供應,不負任何擔保責任。Microsoft及(或)其供應商謹此聲明,不負任何對與此資訊有關之擔保責任,包括關於適售性、適用於某一特定用途、權利或不侵權的明示或默示擔保責任。Microsoft及(或)其供應商無論如何不對因或與使用本伺服器上資訊或與資訊的實行有關而引起的契約、過失或其他侵權行為之訴訟中的特別的、間接的、衍生性的損害或任何因使用而喪失所導致的之損害、資料或利潤負任何責任。 | 其他資源 其他支援網站社群立即取得協助文章翻譯
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
回此頁最上方
