2014-04-28 35 views
1

如果這已被回答,我很抱歉。我已經搜索了高和低的答案,但沒有以前的帖子的建議解決了我的問題。這就是我發佈這個問題的原因。無法加載文件或程序集「[網站]」或其某個依賴項。訪問被拒絕

我轉換,以前在2003/IIS6跑到2008 R2/IIS7的Web服務。我是2008 R2/IIS7的新手,所以我很抱歉,如果這是一個我不熟悉的簡單修復。

我創建了一個自定義的應用程序池稱爲ILXQuoteServer,但它爲藍本的經典.net應用程序池後,兩個池的比賽,因此所有配置。

當我上面的錯誤,我重置所有應用程序的權限使用[本地主機] \網絡服務,並給了[本地主機] \讀/ Web服務上的文件夾執行/列表權限的網絡服務。

然而,這些修復工作。這是完整的錯誤。希望這是一個簡單的修復。

謝謝。

========================================= =========================在 '/ ILXQuoteServer' 應用

服務器錯誤。

無法加載文件或程序集「ILXQuoteServer」或它的某個依賴項。訪問被拒絕。

描述:執行當前Web請求期間發生未處理的異常。請查看堆棧跟蹤以獲取有關該錯誤的更多信息以及源代碼的位置。

異常詳細信息: System.IO.FileLoadException:無法加載文件或程序集'ILXQuoteServer'或其某個依賴項。訪問被拒絕。

源錯誤:

在當前web請求的執行過程中生成未處理的異常。關於異常的來源和位置的信息可以使用下面的異常堆棧跟蹤來標識。

程序集加載跟蹤:以下信息可用於確定程序集「ILXQuoteServer」無法加載的原因。

=== Pre-bind state information === 
LOG: User = Unknown 
LOG: DisplayName = ILXQuoteServer 
(Partial) 
LOG: Appbase = file:///D:/MA Install/ILXQuoteServer/ 
LOG: Initial PrivatePath = D:\MA Install\ILXQuoteServer\bin 
Calling assembly : (Unknown). 
=== 
LOG: This bind starts in default load context. 
LOG: Using application configuration file: D:\MA Install\ILXQuoteServer\web.config 
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Aspnet.config 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config. 
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/ilxquoteserver/70368188/9ded7e96/ILXQuoteServer.DLL. 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/ilxquoteserver/70368188/9ded7e96/ILXQuoteServer/ILXQuoteServer.DLL. 
LOG: Attempting download of new URL file:///D:/MA Install/ILXQuoteServer/bin/ILXQuoteServer.DLL. 
LOG: Using application configuration file: D:\MA Install\ILXQuoteServer\web.config 
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Aspnet.config 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config. 
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). 
ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated. 

堆棧跟蹤:

[FileLoadException: Could not load file or assembly 'ILXQuoteServer' or one of its dependencies. Access is denied.] 

[FileLoadException: Could not load file or assembly 'ILXQuoteServer, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.] 
    System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0 
    System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43 
    System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127 
    System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142 
    System.Reflection.Assembly.Load(String assemblyString) +28 
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46 

[ConfigurationErrorsException: Could not load file or assembly 'ILXQuoteServer, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.] 
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613 
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203 
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105 
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178 
    System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54 
    System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +232 
    System.Web.Compilation.BuildManager.CompileGlobalAsax() +51 
    System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +337 

[HttpException (0x80004005): Could not load file or assembly 'ILXQuoteServer, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.] 
    System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58 
    System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512 
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729 

[HttpException (0x80004005): Could not load file or assembly 'ILXQuoteServer, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.] 
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8921851 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85 
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259 

Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456 

回答

1

你嘗試賦予權限的帳戶上臨時ASP.NET文件的文件夾?

在大多數機器上它位於:C:\ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET Files

相關問題