質問

私は現在、ASP.NETプラットフォームを実行するために新しいサーバーを準備しています。初めて64ビットウィンドウ(2008 R2)とIIS7.5(その前には7.0の前)にインストールを行っています。当社のウェブサイトはX86に組み込まれているため、アプリケーションプールが32ビットアプリケーションを使用できるようにしました。

ウェブサイトを閲覧したときに得られる次のエラーにこだわっています。

Server Error in '/' Application.



The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:



[FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]

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

   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43

   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127

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

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

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



[ConfigurationErrorsException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]

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

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

   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105

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

   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54

   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +600

   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125

   System.Web.Compilation.BuildManager.EnsureFirstTimeDirectoryInit(VirtualPath virtualDir) +8803959

   System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode) +219

   System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath) +43

   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +59

   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101

   System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +126

   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +62

   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33

   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37

   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +307

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

FusloGVWを使用して、.NETバインディングエラーを追跡しました:4つのアセンブリが表示されましたが、サイトを初めて閲覧するときに通常のサーバーで同じ4つを取得します。アセンブリは、cppcodeprovider、vjsharpcodeprovider、および2つの *.resourcesファイルです。私はこれらを調べましたが、それらがこの問題の原因であるとは思いません。確かに、作業環境がFuslogvwで同じ欠落アセンブリを持っていることを知った後ではありません。

次に、依存関係ウォーカーを使用して、ウェブサイトのメインDLLを研究しました。何も欠けているようには見えませんが、次のメッセージが表示されます。

* Error: Modules with different CPU types were found.

私の.NETアセンブリはx86であり、他の依存関係はすべてx64であるため、これも問題ではないと思います。

だから、私は本当に不足している「モジュール」ASP.NETが不平を言っていることを知りたいです。

役に立ちましたか?

解決

これにより私の問題が解決しました。MSVCR71.dllをC: Windows System32およびC: Windows Syswow64に配置する必要がありました。

他のヒント

設定して問題を解決しました 32ビットプログラムを有効にします真実 アプリプールの[詳細設定]タブの下。

32ビットプログラムhttp://zizhujy.com/blog/image.axd?picture=enable32bit.pngを有効にします

このブログ投稿の詳細

最近、R2に4.0ベータ1アプリを配置したときに同様の問題があり、同様の結果もありました。問題は、(GACから)プロジェクトで参照されているコア.NETアセンブリの1つがCopylocal Trueとしてマークされたことであることを発見するのにかなりの時間がかかりました。私はどうしてわからない - 私は確かに故意にそれをしなかったし、他の誰もそれに取り組んでいない。それを後退させたら(そして、私はローカルコピーを削除する必要があると思います)、すべてが順調でした。

CPPCodeProviderでの問題に対する答えがここにあります:http://www.experts-exchange.com/programming/languages/.net/.net_framework_2.0/q_24367712.html(ログインが必要です)

「Trace Constantを定義する」をオフにするか、問題があるコンピューターに.NET SDKをインストールします。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top