ASP.NET 2.0 App Crashes
-
Hi All, I have a database driven web app written with C#, Asp.NET 2.0 and uses an SQL Server 2005 back-end. The app usually crashes at least once a day but some days does not crash at all and others it crashes much more often, its like it gets stuck in a loop of constantly crashing. An iisreset fixes the problem so is it safe to assume its iis that is the problem but i really need to find out what the cause of the crash is so im just looking for some advice as to where to start, are there some tools i can use or whats the best way to go about this. Any help or advice would really be appreciated Regards Tim
-
Hi All, I have a database driven web app written with C#, Asp.NET 2.0 and uses an SQL Server 2005 back-end. The app usually crashes at least once a day but some days does not crash at all and others it crashes much more often, its like it gets stuck in a loop of constantly crashing. An iisreset fixes the problem so is it safe to assume its iis that is the problem but i really need to find out what the cause of the crash is so im just looking for some advice as to where to start, are there some tools i can use or whats the best way to go about this. Any help or advice would really be appreciated Regards Tim
-
Hi All, I have a database driven web app written with C#, Asp.NET 2.0 and uses an SQL Server 2005 back-end. The app usually crashes at least once a day but some days does not crash at all and others it crashes much more often, its like it gets stuck in a loop of constantly crashing. An iisreset fixes the problem so is it safe to assume its iis that is the problem but i really need to find out what the cause of the crash is so im just looking for some advice as to where to start, are there some tools i can use or whats the best way to go about this. Any help or advice would really be appreciated Regards Tim
Have you checked the event log on the server for some indication of what is causing the crash? Also check the IIS log files.
-
Have you checked the event log on the server for some indication of what is causing the crash? Also check the IIS log files.
I have checked the Event Viewer and the most recent error is: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 13/01/2009 10:21:48 Event time (UTC): 13/01/2009 10:21:48 Event ID: a3413091a18d426ba586ccc714e6be15 Event sequence: 146 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/CD-1-128763154628476497 Trust level: Full Application Virtual Path: /CD Application Path: C:\inetpub\wwwroot\CD\ Machine name: MCORION Process information: Process ID: 10612 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE Exception information: Exception type: ArgumentException Exception message: Column 'DistanceCovered' does not belong to table Table1. Request information: Request URL: http://mcorion/CD/Default.aspx?Page=AmiscoPhaseComparison Request path: /CD/Default.aspx Is authenticated: True Authentication Type: Negotiate Thread account name: NT AUTHORITY\NETWORK SERVICE Thread information: Thread ID: 10 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at blt.SS.View.ProzonePhaseAnalysis.FillPlayerMaxMinAverage(DataTable mainTable, DataTable dataTable, String statName) at blt.SS.View.ProPhaseAnalysis.btnView_Click(Object sender, ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Custom event details: The error seems to be that the Column 'DistanceCovered' does not belong to table Table1 but there doesnt seem to be any mention of this column in my code any where. Have not checked the IIS logs will find out how to and see what info that gives me. Thanks for your reply Tim
-
I have checked the Event Viewer and the most recent error is: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 13/01/2009 10:21:48 Event time (UTC): 13/01/2009 10:21:48 Event ID: a3413091a18d426ba586ccc714e6be15 Event sequence: 146 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/CD-1-128763154628476497 Trust level: Full Application Virtual Path: /CD Application Path: C:\inetpub\wwwroot\CD\ Machine name: MCORION Process information: Process ID: 10612 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE Exception information: Exception type: ArgumentException Exception message: Column 'DistanceCovered' does not belong to table Table1. Request information: Request URL: http://mcorion/CD/Default.aspx?Page=AmiscoPhaseComparison Request path: /CD/Default.aspx Is authenticated: True Authentication Type: Negotiate Thread account name: NT AUTHORITY\NETWORK SERVICE Thread information: Thread ID: 10 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at blt.SS.View.ProzonePhaseAnalysis.FillPlayerMaxMinAverage(DataTable mainTable, DataTable dataTable, String statName) at blt.SS.View.ProPhaseAnalysis.btnView_Click(Object sender, ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Custom event details: The error seems to be that the Column 'DistanceCovered' does not belong to table Table1 but there doesnt seem to be any mention of this column in my code any where. Have not checked the IIS logs will find out how to and see what info that gives me. Thanks for your reply Tim
Must be in there somewhere, in the FillPlayerMaxMinAverage method.
-
I have checked the Event Viewer and the most recent error is: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 13/01/2009 10:21:48 Event time (UTC): 13/01/2009 10:21:48 Event ID: a3413091a18d426ba586ccc714e6be15 Event sequence: 146 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/CD-1-128763154628476497 Trust level: Full Application Virtual Path: /CD Application Path: C:\inetpub\wwwroot\CD\ Machine name: MCORION Process information: Process ID: 10612 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE Exception information: Exception type: ArgumentException Exception message: Column 'DistanceCovered' does not belong to table Table1. Request information: Request URL: http://mcorion/CD/Default.aspx?Page=AmiscoPhaseComparison Request path: /CD/Default.aspx Is authenticated: True Authentication Type: Negotiate Thread account name: NT AUTHORITY\NETWORK SERVICE Thread information: Thread ID: 10 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at blt.SS.View.ProzonePhaseAnalysis.FillPlayerMaxMinAverage(DataTable mainTable, DataTable dataTable, String statName) at blt.SS.View.ProPhaseAnalysis.btnView_Click(Object sender, ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Custom event details: The error seems to be that the Column 'DistanceCovered' does not belong to table Table1 but there doesnt seem to be any mention of this column in my code any where. Have not checked the IIS logs will find out how to and see what info that gives me. Thanks for your reply Tim
-
as you think this seems that you have a problem on your code, trace your app and find the problem
Human knowledge belongs to the world
The problem is i have spent the last ten mins trying to get the same page to crash again and its running perfect now its doesnt make sense, the method mentioned FillPlayerMaxMinAverage does have statName as a param which may have been set to DistanceCovered but it just will not crash again, the page seems to be fine now so im just waiting for the next crash :( I managed to find the IIS logs, they are very messy, is there some less complicated way to check them ???
-
Hi All, I have a database driven web app written with C#, Asp.NET 2.0 and uses an SQL Server 2005 back-end. The app usually crashes at least once a day but some days does not crash at all and others it crashes much more often, its like it gets stuck in a loop of constantly crashing. An iisreset fixes the problem so is it safe to assume its iis that is the problem but i really need to find out what the cause of the crash is so im just looking for some advice as to where to start, are there some tools i can use or whats the best way to go about this. Any help or advice would really be appreciated Regards Tim
I also have an application that I am supporting which becomes unstable / crashes. I was using the windows performance monitor and watching the .NET CLR Memory Total committed Bytes. The memory would just climb higher and higher and eventually the system would crash. I then looked into the Event viewer and we found error messages that lead us to the conclusion that there was a memory leak in one area of the application. The vendor fixed the leak and the system is more stable. Start with monitoring the memory on the IIS server and check the memory usage, you may find a correlation between memory usage and system stability. david
-
The problem is i have spent the last ten mins trying to get the same page to crash again and its running perfect now its doesnt make sense, the method mentioned FillPlayerMaxMinAverage does have statName as a param which may have been set to DistanceCovered but it just will not crash again, the page seems to be fine now so im just waiting for the next crash :( I managed to find the IIS logs, they are very messy, is there some less complicated way to check them ???
Thanks for ur replies guys.... I managed to find that one "Distance Covered" bug buried deep in the code and got it sorted now but the app is still crashing regularly, i have noticed that the majority of the crashes are happening in the Data Access Layer objects when they try to interact with the db. This is the most common crash i am seeing in Event Viewer. But the prob is this method is run regularly and only crashes sometimes. Event code: 3005 Event message: An unhandled exception has occurred. Event time: 13/01/2009 15:54:39 Event time (UTC): 13/01/2009 15:54:39 Event ID: 9334dc4729694b1a93e5e6d1c8789b75 Event sequence: 50 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/CD-1-128763355768712422 Trust level: Full Application Virtual Path: /CD Application Path: C:\inetpub\wwwroot\CD\ Machine name: MCORION Process information: Process ID: 8876 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE Exception information: Exception type: NullReferenceException Exception message: Object reference not set to an instance of an object. Request information: Request URL: http://mcorion/CD/Default.aspx?Page=ViewTreatments Request path: /CD/Default.aspx User: MC\Medi Is authenticated: True Authentication Type: Negotiate Thread account name: NT AUTHORITY\NETWORK SERVICE Thread information: Thread ID: 8 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at SportsAnalysis.DataAccessLayer.ObjectAccess.DatabaseSettings.SelectOne() at blt.BasePage.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Custom event details: Regards Tim