About deploying version --- warning encountered: Assembly binding logging is turned OFF. Problem Solution

This switched: https: //www.cnblogs.com/shangwater/p/5449470.html

Error: Assembly binding logging is turned OFF.

Solution:

The IIS application pool service program "Start 32-bit Applications" to true.

 

wrong description:

IIS applications deployed to the following error (Win7 x64 bit .net 4.0) appears:

Server Error "/ AppShip" application.

Could not load file or assembly "AppShip.Web" or one of its dependencies. Trying to load program with an incorrect format.

Description: The  execution of the current Web request during unhandled exception occurs. Please review the stack trace for more information about the error and understand the details of the error code of the source of the lead. 

Exception Details:  System.BadImageFormatException: Could not load file or assembly "AppShip.Web" or one of its dependencies. Trying to load program with an incorrect format.

Source Error: 

An unhandled exception was generated during the execution of the current Web request. You can use the following exception stack trace for more information about the error and location.


Assembly Load Trace:  The following information can help determine why the assembly "AppShip.Web" could not be loaded.

 

WRN: Assembly binding logging is turned off.

To enable assembly bind failure logging, set the registry value [HKLM \ Software \ Microsoft \ Fusion! EnableLog] (DWORD) to 1.

Note: there will be some with assembly bind failure logging performance penalty associated with it.

To turn this feature off, remove the registry value [HKLM \ Software \ Microsoft \ Fusion! EnableLog].


Stack Trace: 

 

[BadImageFormatException: Could not load file or assembly "AppShip.Web" or one of its dependencies. Trying to load program with an incorrect format. ]

System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0

System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210

System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242

System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17

System.Reflection.Assembly.Load(String assemblyString) +35

System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +122

 

[ConfigurationErrorsException: Could not load file or assembly "AppShip.Web" or one of its dependencies. Trying to load program with an incorrect format. ]

System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +12845354

System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +503

System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +142

System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334

System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +148

System.Web.Compilation.BuildManager.ExecutePreAppStart() +172

System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151

 

[HttpException (0x80004005): 未能加载文件或程序集"AppShip.Web"或它的某一个依赖项。试图加载格式不正确的程序。]

System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12966756

System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159

System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12806561

Guess you like

Origin www.cnblogs.com/lucong-white/p/11635339.html