我正在尝试将 .net 2.0 应用程序从 Windows Server 2003 迁移到 Windows Server 2008。
我收到错误消息 - 找不到指定的模块。(来自 HRESULT 的异常:0x8007007E)
似乎缺少一个 dll,但我似乎无法找出哪个 dll。我将整个应用程序复制到我在 IIS7 中创建的新网站。
我还在网上看到了一些关于在 system32 和 syswow64 文件夹中需要 dll msvcr71.dll 的帖子,所以我尝试了一下,但是没有用。
Windows Server 2008 R2 作为 64 位操作系统会不会有问题?
感谢您提前提供任何帮助。
应用程序日志中的更多详细信息:
在 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) 在 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() 在 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) 在 System.Web.Compilation。 BuildManager.GetReferencedAssemblies(CompilationSection compConfig) 在 System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) 在 System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) 在 System.Web.Compilation.BuildManager.BatchCompileWebDirectory( VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) 在 System.Web.Compilation.BuildManager。GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory (VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper( System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2 处的 HttpContext 上下文、字符串 requestType、VirtualPath virtualPath、String physicalPath)。System.Web.HttpApplication.MapHttpHandler 中的 GetHandler(HttpContext 上下文,字符串 requestType,VirtualPath virtualPath,字符串物理路径)(HttpContext 上下文,字符串 requestType,VirtualPath 路径,String pathTranslated,布尔 useAppConfig)在 System.Web.HttpApplication.MapHandlerExecutionStep.System.Web System.Web.HttpApplication.ExecuteStep 处的 .HttpApplication.IExecutionStep.Execute()(IExecutionStep 步骤,Boolean& completedSynchronously)ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
编辑:
以下是有关 IIS 配置的更多信息:
我在以经典模式设置的 apppool 上设置了一个主网站 - 我还将它设置为运行 32 位应用程序。我在该文件夹中只放了一个简单的 test.aspx 文件,它工作正常。然后我有一个子目录,它实际上包含我要迁移的应用程序。我在那里添加了另一个 test.aspx 文件,我可以很好地导航到它。
当我转到子目录并将其设置为应用程序目录时,test.aspx 文件不再起作用,并且出现上述错误。
我希望这能更清楚地说明我的问题。