廣告:
日志名稱: Application
來源: ASP.NET 4.0.30319.0
Event code: 3006
Event message: 發(fā)生了分析器錯誤。
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文件也應該替換。
廣告: