刚装的VS2008无法运行程序 :找不到指定的模块。 (异常来自 HRESULT:0x8007007E)
[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) +50
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +98
[ConfigurationErrorsException: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +721
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +297
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +71
System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +39
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +203
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +95
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +963
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +198
System.Web.Compilation.BuildManager.CompileCodeDirectories() +368
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +417
[HttpException (0x80004005): 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +81
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +554
System.Web.Compilation.BuildManager.CallAppInitializeMethod() +42
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +814
[HttpException (0x80004005): 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +642
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +121
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +314
------解决方案--------------------
安装过程中出现错误或警告,但是你跳过了的情况发生嘛?
如果没有的话,你是用刚安装的VS2008新建一个项目,然后运行报的这个错?
还是打开一个已经存在的项目??
如果是前者的话,那就是VS2008安装的有问题。
后者的话,则是那个项目可能是在VS2008 打过SP1补丁后的环境下开发的,你尝试给VS2008打一个SP1的补丁,然后再打开此项目试试。
VS2008 sp1补丁地址:
http://www.microsoft.com/downloads/zh-cn/details.aspx?displaylang=zh-cn&FamilyID=7bbe5eda-5062-4ebb-83c7-d3c5ff92a373
------解决方案--------------------