发生了分析器错误:未能加载类型“MvcApplication

广告:

日志名称: Application
来源: ASP.NET 4.0.30319.0
Event code: 3006
Event message: 发生了分析器错误。

Process information:
Process ID: 2840
Process name: w3wp.exe
Account name: IIS APPPOOL\blog40
Exception information:
Exception type: HttpException
Exception message: 未能加载类型“Newsweb.MvcApplication”。
在 System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
在 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
在 System.Web.Compilation.BuildManager.CallAppInitializeMethod()
在 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

未能加载类型“Newsweb.MvcApplication”。
在 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
在 System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
在 System.Web.UI.TemplateParser.ParseInternal()
在 System.Web.UI.TemplateParser.Parse()
在 System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
在 System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
在 System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
在 System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
在 System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)
在 System.Web.Compilation.BuildManager.CompileGlobalAsax()
在 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()

解决方法:

替换相应的aspx文件如:Default.aspx,因为命名空间变了,则相应的aspx文件也应该替换。

广告:

相关内容

编辑:Admin 时间:2022/1/1 12:26:06 阅览:884   返回    
分析器错误
MvcApplication
扫描关注53BK报刊官网
扫描关注阅速公司微信