Inside the Application_Error handler that should already be present in the Global.asax file,add the following highlighted code that is triggered whenever an unhandled exception occurs in your site. If the handler isn’t there, make sure you type all the code from the following snippet,including the parts that are not bolded: