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. Writing an ASP.NET custom error page

Writing an ASP.NET custom error page

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasehelpquestion
5 Posts 3 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.
  • A Offline
    A Offline
    AnneThorne
    wrote on last edited by
    #1

    Hi Everyone, The company I work for has outsourced its website to a 3rd party, however we can write a custom error page to track 500 errors. We would like to be able to create such a 500 error page to find out as much as much as we possibly can about what happened to cause the 500 error. Also, we would like to get all the session and cookie data we can from the session that encountered the 500 error. Then, we'd like to save all of that data into a DB table. Have any of you done this sort of thing before, or have any recommendations? All the Best to You! :) Anne

    L D 2 Replies Last reply
    0
    • A AnneThorne

      Hi Everyone, The company I work for has outsourced its website to a 3rd party, however we can write a custom error page to track 500 errors. We would like to be able to create such a 500 error page to find out as much as much as we possibly can about what happened to cause the 500 error. Also, we would like to get all the session and cookie data we can from the session that encountered the 500 error. Then, we'd like to save all of that data into a DB table. Have any of you done this sort of thing before, or have any recommendations? All the Best to You! :) Anne

      L Offline
      L Offline
      lokerjobindo
      wrote on last edited by
      #2

      Session timeout in ASP.NET? Are you using Forms authentication? Forms authentication uses it own value for timeout (30 min. by default). A forms authentication timeout will send the user to the login page with the session still active. This may look like the behavior your app gives when session times out making it easy to confuse one with the other.

      <system.web>
      <authentication mode="Forms">
      <forms timeout="50"/>
      </authentication>

      <sessionState timeout="60"  />
      

      </system.web>

      Setting the forms timeout to something less than the session timeout can give the user a window in which to log back in without losing any session data. thanks sign Lowongan Kerja

      A 1 Reply Last reply
      0
      • A AnneThorne

        Hi Everyone, The company I work for has outsourced its website to a 3rd party, however we can write a custom error page to track 500 errors. We would like to be able to create such a 500 error page to find out as much as much as we possibly can about what happened to cause the 500 error. Also, we would like to get all the session and cookie data we can from the session that encountered the 500 error. Then, we'd like to save all of that data into a DB table. Have any of you done this sort of thing before, or have any recommendations? All the Best to You! :) Anne

        D Offline
        D Offline
        Daniel Miller
        wrote on last edited by
        #3

        I don't know if you will find this helpful, but I posted an article on this topic, after encountering a similar circumstance myself: ASP.NET Application Error Handling[^] ELMAH is another very good option - a popular choice among many developers: The Unsung Hero “ELMAH”[^]

        A 1 Reply Last reply
        0
        • L lokerjobindo

          Session timeout in ASP.NET? Are you using Forms authentication? Forms authentication uses it own value for timeout (30 min. by default). A forms authentication timeout will send the user to the login page with the session still active. This may look like the behavior your app gives when session times out making it easy to confuse one with the other.

          <system.web>
          <authentication mode="Forms">
          <forms timeout="50"/>
          </authentication>

          <sessionState timeout="60"  />
          

          </system.web>

          Setting the forms timeout to something less than the session timeout can give the user a window in which to log back in without losing any session data. thanks sign Lowongan Kerja

          A Offline
          A Offline
          AnneThorne
          wrote on last edited by
          #4

          Thanks, that is good to know. A third party wrote the code, so I am not sure. :) Anne

          1 Reply Last reply
          0
          • D Daniel Miller

            I don't know if you will find this helpful, but I posted an article on this topic, after encountering a similar circumstance myself: ASP.NET Application Error Handling[^] ELMAH is another very good option - a popular choice among many developers: The Unsung Hero “ELMAH”[^]

            A Offline
            A Offline
            AnneThorne
            wrote on last edited by
            #5

            Thanks Daniel! I'll take a look at those resources. :) Anne

            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