Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.NET 2.0 App Crashes

ASP.NET 2.0 App Crashes

Scheduled Pinned Locked Moved ASP.NET
helpcsharpdatabaseasp-netsql-server
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tadhg88
    wrote on last edited by
    #1

    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

    R P D 3 Replies Last reply
    0
    • T tadhg88

      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

      R Offline
      R Offline
      Reza Raad
      wrote on last edited by
      #2

      what error do you receive when your app crash??? maybe this be related to iis alive connections or etc... first post your error here

      Human knowledge belongs to the world

      1 Reply Last reply
      0
      • T tadhg88

        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

        P Offline
        P Offline
        Paddy Boyd
        wrote on last edited by
        #3

        Have you checked the event log on the server for some indication of what is causing the crash? Also check the IIS log files.

        T 1 Reply Last reply
        0
        • P Paddy Boyd

          Have you checked the event log on the server for some indication of what is causing the crash? Also check the IIS log files.

          T Offline
          T Offline
          tadhg88
          wrote on last edited by
          #4

          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

          P R 2 Replies Last reply
          0
          • T tadhg88

            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

            P Offline
            P Offline
            Paddy Boyd
            wrote on last edited by
            #5

            Must be in there somewhere, in the FillPlayerMaxMinAverage method.

            1 Reply Last reply
            0
            • T tadhg88

              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

              R Offline
              R Offline
              Reza Raad
              wrote on last edited by
              #6

              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

              T 1 Reply Last reply
              0
              • R Reza Raad

                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

                T Offline
                T Offline
                tadhg88
                wrote on last edited by
                #7

                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 ???

                T 1 Reply Last reply
                0
                • T tadhg88

                  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

                  D Offline
                  D Offline
                  David Mujica
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • T tadhg88

                    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 ???

                    T Offline
                    T Offline
                    tadhg88
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups