2011-12-14 37 views
4

此錯誤是殺了我這麼多。我無法在Application_OnError中捕獲此錯誤。我能夠得到的唯一消息是事件查看器日誌。應用程序崩潰是由於計算器

Application: w3wp.exe 
Framework Version: v4.0.30319 
Description: The process was terminated due to stack overflow. 



Faulting application w3wp.exe, version 7.0.6001.18000, time stamp 0x47919413, faulting module nlssorting.dll, version 4.0.30319.235, time stamp 0x4da3fc88, exception code 0xc00000fd, fault offset 0x000020d4, process id 0x%9, application start time 0x%10. 

我有一個非常大的應用程序,並與上述錯誤,我無法判斷哪裏是stackoverflow的確切原因。你能幫我解決這個問題嗎?

+0

在應用程序上哪裏出現此錯誤? – BizApps 2011-12-14 05:22:20

回答

2

您可以在Application_End得到更多的幫助。從這裏,你可以使用像這樣捕獲關閉堆棧...

HttpRuntime runtime = (HttpRuntime)typeof(System.Web.HttpRuntime).InvokeMember("_theRuntime", BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.GetField, null, null, null); 

(string)runtime.GetType().InvokeMember("_shutDownStack", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.GetField, null, runtime, null); 

(string)runtime.GetType().InvokeMember("_shutDownMessage", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.GetField, null, runtime, null); 
相關問題