日期:2014-05-18  浏览次数:20485 次

发布网站出错,IIS6.0 .NET4.0
Server Error in '/' Application.
--------------------------------------------

Could not load file or assembly 'WEBTest' or one of its dependencies. 拒绝访问。 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'WEBTest' or one of its dependencies. 拒绝访问。

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Assembly Load Trace: The following information can be helpful to determine why the assembly 'WEBTest' could not be loaded.


=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = WEBTest
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: WEBTest | Domain ID: 4
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///F:/WebSites/Test/
LOG: Initial PrivatePath = F:\WebSites\Test\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: F:\WebSites\Test\web.config
LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\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/v4.0.30319/Temporary ASP.NET Files/root/f401e5aa/4e03d943/WEBTest.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/f401e5aa/4e03d943/WEBTest/WEBTest.DLL.
LOG: Attempting download of new URL file:///F:/WebSites/Test/bin/WEBTest.DLL.
LOG: Using application configuration file: F:\WebSites\Test\web.config
LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\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.

 

Stack Trace: 


[FileLoadException: Could not load file or assembly 'WEBTest' or one of its dependencies. 拒绝访问。]

[FileLoadException: Could not load file or assembly 'WEBTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. 拒绝访问。]
  System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
  System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotF