广告:
日志名称: 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文件也应该替换。
广告: