首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

找不到指定的模块。 (错误来自 HRESULT:0x8007007E)

2012-03-31 
找不到指定的模块。 (异常来自 HRESULT:0x8007007E)找不到指定的模块。 (异常来自 HRESULT:0x8007007E)说明:

找不到指定的模块。 (异常来自 HRESULT:0x8007007E)
找不到指定的模块。 (异常来自 HRESULT:0x8007007E) 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.IO.FileNotFoundException: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)

源错误: 

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  

堆栈跟踪: 


[FileNotFoundException: 找不到指定的模块。 (异常来自 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: 找不到指定的模块。 (异常来自 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.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +163
  System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +53
  System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) +175
  System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +83
  System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +261
  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.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
  System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160
  System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

 


--------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3053; ASP.NET 版本:2.0.50727.3053 




拷贝的ASP.NET网站,出现如上错误,直觉是少了什么DLL,但是和正常机器比较过,完全一样。

安装一个几乎一样的网站也能正常。





[解决办法]
帮顶
[解决办法]
比较一下配置文件 ,可能会有出入。
[解决办法]
Asembly name 不对或者确dll
[解决办法]
反射机制不对
[解决办法]
System.IO.FileNotFoundException
说了是路径不对

[解决办法]
看看system32下有没msvcr71.dll
msvcr71.dll是VC7运行库文件,如果缺少,会使得很多常用软件无法正常运行。 
如果没有,网上下载个复制到C:\WINDOWS\system32文件夹下即可 


[解决办法]
关注
[解决办法]
以前也遇到过这样的问题

很是奇怪,DLL是不缺的

最后无奈之下,重装了.NET FRAMEWORK

一切正常了。

热点排行