问题描述
windowsserver2008R2,装完iis部署网站报错。求大神指点“/”应用程序中的服务器错误。未能加载文件或程序集“msvcm90,Version=9.0.21022.8,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。试图加载格式不正确的程序。说明:执行当前Web请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。异常详细信息:System.BadImageFormatException:未能加载文件或程序集“msvcm90,Version=9.0.21022.8,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。试图加载格式不正确的程序。源错误:执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。堆栈跟踪:[BadImageFormatException:未能加载文件或程序集“msvcm90,Version=9.0.21022.8,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。试图加载格式不正确的程序。]System.Reflection.Assembly._nLoad(AssemblyNamefileName,StringcodeBase,EvidenceassemblySecurity,AssemblylocationHint,StackCrawlMark&stackMark,BooleanthrowOnFileNotFound,BooleanforIntrospection)+0System.Reflection.Assembly.nLoad(AssemblyNamefileName,StringcodeBase,EvidenceassemblySecurity,AssemblylocationHint,StackCrawlMark&stackMark,BooleanthrowOnFileNotFound,BooleanforIntrospection)+43System.Reflection.Assembly.InternalLoad(AssemblyNameassemblyRef,EvidenceassemblySecurity,StackCrawlMark&stackMark,BooleanforIntrospection)+127System.Reflection.Assembly.InternalLoad(StringassemblyString,EvidenceassemblySecurity,StackCrawlMark&stackMark,BooleanforIntrospection)+142System.Reflection.Assembly.Load(StringassemblyString)+28System.Web.Configuration.CompilationSection.LoadAssemblyHelper(StringassemblyName,BooleanstarDirective)+46[ConfigurationErrorsException:未能加载文件或程序集“msvcm90,Version=9.0.21022.8,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。试图加载格式不正确的程序。]System.Web.Configuration.CompilationSection.LoadAssemblyHelper(StringassemblyName,BooleanstarDirective)+613System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()+203System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfoai)+105System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSectioncompConfig)+178System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectoryvdir)+163System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectoryvdir,BooleanignoreErrors)+53System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectoryvdir,VirtualPathvirtualDir,BooleanignoreErrors)+175System.Web.Compilation.BuildManager.CompileWebFile(VirtualPathvirtualPath)+86System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPathvirtualPath,BooleannoBuild,BooleanallowCrossApp,BooleanallowBuildInPrecompile)+261System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContextcontext,VirtualPathvirtualPath,BooleannoBuild,BooleanallowCrossApp,BooleanallowBuildInPrecompile)+101System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPathvirtualPath,HttpContextcontext,BooleanallowCrossApp,BooleannoAssert)+126System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPathvirtualPath,TyperequiredBaseType,HttpContextcontext,BooleanallowCrossApp,BooleannoAssert)+62System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContextcontext,StringrequestType,VirtualPathvirtualPath,StringphysicalPath)+33System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContextcontext,StringrequestType,VirtualPathvirtualPath,StringphysicalPath)+40System.Web.HttpApplication.MapHttpHandler(HttpContextcontext,StringrequestType,VirtualPathpath,StringpathTranslated,BooleanuseAppConfig)+160System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+93System.Web.HttpApplication.ExecuteStep(IExecutionStepstep,Boolean&completedSynchronously)+155