バージョンの配備について---警告が発生しました:アセンブリバインディングログがOFFになっています。問題解決策

これは、切り替えます。https://www.cnblogs.com/shangwater/p/5449470.html

エラー:アセンブリバインディングログがOFFになっています。

ソリューション:

IISアプリケーションプールのサービスプログラムをtrueに「3​​2ビットアプリケーションを起動します」。

 

エラー説明:

次のエラー(4.0 .NET Win7のx64のビット)に展開IISアプリケーションが表示されます:

サーバーエラー「/ AppShip」アプリケーション。

ファイルまたはアセンブリ「AppShip.Web」またはその依存関係の1つをロードできませんでした。間違ったフォーマットのプログラムをロードしようとしています。

説明: 未処理の例外中の現在のWeb要求の実行が発生します。エラーの詳細については、スタックトレースを確認し、リードのソースのエラーコードの詳細を理解してください。 

例外の詳細:  System.BadImageFormatException:ファイルまたはアセンブリ「AppShip.Web」またはその依存関係の1つをロードできませんでした。間違ったフォーマットのプログラムをロードしようとしています。

ソースエラー: 

未処理の例外は、現在のWeb要求の実行中に生成されました。あなたは、エラーと場所の詳細については、次の例外スタックトレースを使用することができます。


アセンブリ読み込みトレース:  以下の情報は、アセンブリ「AppShip.Webは」ロードできなかった理由を判断するのに役立ちます。

 

WRN:アセンブリバインディングログ記録がオフになっています。

アセンブリバインドの失敗のログを有効にするには、1にレジストリ値[HKLM \ SOFTWARE \マイクロソフト\融合!EnableLog](DWORD)を設定します。

注意:それに関連付けられたアセンブリバインドの障害ロギングパフォーマンスの低下といくつか存在します。

この機能をオフにするには、レジストリ値[HKLM \ SOFTWARE \マイクロソフト\フュージョン!EnableLog]を削除します。


スタックトレース: 

 

[BadImageFormatException:ファイルまたはアセンブリ「AppShip.Web」またはその依存関係の1つをロードできませんでした。間違ったフォーマットのプログラムをロードしようとしています。]

System.Reflection.RuntimeAssembly._nLoad(のAssemblyNameファイル名、文字列のコードベース、証拠assemblySecurity、RuntimeAssembly locationHint、StackCrawlMark&stackMark、のIntPtr pPrivHostBinder、ブールthrowOnFileNotFound、ブールforIntrospection、ブールsuppressSecurityChecks)+0

System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(のAssemblyName assemblyRef、証拠assemblySecurity、RuntimeAssembly reqAssembly、StackCrawlMark&stackMark、のIntPtr pPrivHostBinder、ブールthrowOnFileNotFound、ブールforIntrospection、ブールsuppressSecurityChecks)210

System.Reflection.RuntimeAssembly.InternalLoad(文字列assemblyString、証拠assemblySecurity、StackCrawlMark&stackMark、のIntPtr pPrivHostBinder、ブールforIntrospection)242

System.Reflection.RuntimeAssembly.InternalLoad(文字列assemblyString、証拠assemblySecurity、StackCrawlMark&stackMark、ブールforIntrospection)+17

System.Reflection.Assembly.Load(文字列assemblyString)+35

System.Web.Configuration.CompilationSection.LoadAssemblyHelper(文字列のAssemblyName、ブールstarDirective)122

 

[ConfigurationErrorsException:ファイルまたはアセンブリ「AppShip.Web」またはその依存関係の1つをロードできませんでした。間違ったフォーマットのプログラムをロードしようとしています。]

System.Web.Configuration.CompilationSection.LoadAssemblyHelper(文字列のAssemblyName、ブール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

おすすめ

転載: www.cnblogs.com/lucong-white/p/11635339.html