Explain weg config settings for exception managment in asp.net?

Answer Posted / vijay

You should configure exception management settings within
your application's Web.config file. The following is an
example of the exception settings in a Web.config file.

< customErrors defaultredirect="http://hostname/error.aspx"
mode="On"/>
< error statuscode="500" redirect="/errorpages/
servererror.aspx" />
< error statuscode="404" redirect="/errorpages/
filenotfound.htm" />
< /customErrors>

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is .net3.0 and .net3.5?

550


What is lazy initialization?

582


What are the purposes of using .net?

592


How will you load dynamic assembly? How will create assemblies at run time?

1603


What is the use com component in .net?

565






Explain how com+ related to the dna architecture?

552


What is the use of Treeview control?

602


Explain garbage collection?

540


What is a .net class?

612


Is it true that objects don't always get destroyed immediately when the last reference goes away?

549


Interop Services?

1448


Explain what is an application domain?

515


Can a try block have more than one catch block?

597


How can you assign an rgb color to a system.drawing.color object?

540


Explain security measures exist for .net remoting in system.runtime.remoting?

558