我有一个在本地运行良好的应用程序,但是在部署时我看到了错误:
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)
我已经尝试通过程序集绑定日志查看器查看程序集绑定日志,但即使打开了它,我也没有得到比上面的堆栈跟踪更多的信息,日志似乎保持为空。它抱怨的程序集是存在的,并且从表面上看,它的所有依赖程序集都存在。我还能做些什么来调试我的服务器上的错误?