Below code need to be included in web.config file
Note : There is already customErrors Tag in Web.config file, you need to replace that.
<system.web>
<customErrors mode="On" defaultRedirect="error.aspx"></customErrors>
</system.web>
Here error.aspx is page where you can mention your Error Message, which will be shown every time when exception will occur in your project.
No comments:
Post a Comment