IIS で ASP MVC 4 アプリケーションを実行しようとしています。基本テンプレートから MVC 4 アプリケーションを公開すると、ウィザードによって作成されたもの以外の依存関係がなくても、アプリケーションは機能します。しかし、WebActivator や他の多くのライブラリを使用している他のアプリケーションを公開すると、次のエラーが表示されます。
Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
そして完全なスタック トレース:
[FileLoadException: ファイルまたはアセンブリ 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' またはその依存関係の 1 つを読み込めませんでした。指定されたアセンブリ名またはコードベースが無効でした。(HRESULT からの例外: 0x80131047)] System.ModuleHandle.ResolveType(RuntimeModule モジュール、Int32 typeToken、IntPtr* typeInstArgs、Int32 typeInstCount、IntPtr* methodInstArgs、Int32 methodInstCount、ObjectHandleOnStack タイプ) +0 System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule モジュール、Int32 typeToken 、RuntimeTypeHandle[] typeInstantiationContext、RuntimeTypeHandle[] methodInstantiationContext) +180 System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken、Type[] genericTypeArguments、Type[] genericMethodArguments) +192 System.Reflection.CustomAttribute。
[InvalidOperationException: タイプ WebActivator.ActivationManager でのアプリケーション開始前の初期化メソッド Run は、次のエラー メッセージで例外をスローしました: ファイルまたはアセンブリを読み込めませんでした 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' またはその依存関係の 1 つ。指定されたアセンブリ名またはコードベースが無効でした。(HRESULT からの例外: 0x80131047)。]
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 メソッド) +423
System.Web.Compilation.BuildManager.CallPreStartInitMethods() +306
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager、IApplicationHost appHost、IConfigMapPathFactory configMapPathFactory、HostingEnvironmentParameters、hostingParameters、PolicyLevel policyLevel、例外 appDomainCreationException) +591[HttpException (0x80004005): WebActivator.ActivationManager 型で実行されるアプリケーション前の開始初期化メソッドは、次のエラー メッセージで例外をスローしました: ファイルまたはアセンブリを読み込めませんでした 'System.Core、Version=2.0.5.0、Culture=neutral、PublicKeyToken =7cec85d7bea7798e, Retargetable=Yes' またはその依存関係の 1 つ。指定されたアセンブリ名またはコードベースが無効でした。(HRESULT からの例外: 0x80131047)。]
System.Web.HttpRuntime.FirstRequestInit(HttpContext コンテキスト) +8946484 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext コンテキスト) +97 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
IIS6 に関連する問題ですか、それともサーバーに何か不足していますか?