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. custom error mode

custom error mode

Scheduled Pinned Locked Moved ASP.NET
databasesql-serversysadminhelpquestion
2 Posts 2 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.
  • D Offline
    D Offline
    Dpriya
    wrote on last edited by
    #1

    Hi, I've custom error mode set to "On" and defualt redirect to error.htm in my web.config. In all other cases of error it displays the error.htm page. When sql server was down it displayed the error, "Runtime error , please turn off custom error mode in web.config to view error." How do i avoid even this kind of runtime error getting displayed to end user. Please calrify. Thanks, Priya

    B 1 Reply Last reply
    0
    • D Dpriya

      Hi, I've custom error mode set to "On" and defualt redirect to error.htm in my web.config. In all other cases of error it displays the error.htm page. When sql server was down it displayed the error, "Runtime error , please turn off custom error mode in web.config to view error." How do i avoid even this kind of runtime error getting displayed to end user. Please calrify. Thanks, Priya

      B Offline
      B Offline
      boy pockets
      wrote on last edited by
      #2

      maybe recreating the error and looking at the Page_Error method where you can handle the error manually. as an aside: for customErrors set mode = "RemoteOnly" that will mean that externals will not see the error, but you will be able to see the error from the local box.

      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