How to debug assembly assembly - ConfigurationErrorsException

I have an application that works fine locally, but when deploying, I see an error:

Exception information: 
    Exception type: ConfigurationErrorsException 
    Exception message: Could not load file or assembly 'FluentMigrator.Runner' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
    at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
    at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
    at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
    at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
    at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

I tried to view the assembly binding log through the assembly binding viewer, but even with it turned on I get more information than the previous stack trace, the log seems empty. The node on which he complains is present, and all of his dependent assemblies are present on his face. What else can I do to debug errors on my server?

+5
source share
1 answer

, .. , , x86, IIS x64 ( ). .

, : 1) ( (Fusion) .NET

2) (WinDbg) . , , . http://www.microsoft.com/msj/0999/hood/hood0999.aspx

, WinDbg catch sxeclr ConfigurationErrorsException, .loadby sos clr, ! Pe - . , DLL . IIS (w3wp.exe) WinDBG. gflags . 2) ++/CLI.

+2

All Articles