custom error mode
-
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
-
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
maybe recreating the error and looking at the
Page_Error
method where you can handle the error manually. as an aside: forcustomErrors
setmode = "RemoteOnly"
that will mean that externals will not see the error, but you will be able to see the error from the local box.