我有一個龐大而複雜的網站,主要是由其他人寫的。我做了一些更改,現在當我嘗試訪問網站上的任何頁面(而不僅僅是我的更改)時,出現如下所述的錯誤。雖然我想知道如何解決這個問題,但我更想知道下一步我應該採取的一般診斷步驟,以便找出問題 - 我希望下次能夠自己解決問題。先謝謝您的幫助!如何調試ASP.NET編譯錯誤?
當我瀏覽網站上的瀏覽器的任何網頁,我得到了一個服務器錯誤回:
Parser Error
Parser Error Message: Object reference not set to an instance of an object.
Source Error: [No relevant source lines]
我檢查了服務器上的事件日誌,並得到了一些輕微的詳細信息:
Event code: 3006
Event message: A parser error has occurred.
Exception information:
Exception type: HttpException
Exception message: Object reference not set to an instance of an object.
Stack trace:
at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
看起來像時間恢復所有的變化,然後再次開始,慢慢地。 – 2009-06-22 20:23:52