How do I handle uncaught exceptions in an ASP.NET MVC 3 application?

后端 未结 5 810
情书的邮戳
情书的邮戳 2020-12-29 06:27

I want to handle uncaught exceptions in my ASP.NET MVC 3 application, so that I may communicate the error to the user via the application\'s error view. How do I intercept u

5条回答
  •  無奈伤痛
    2020-12-29 07:12

    in order to make this work I followed the following blog post and then make the following addition to both Web.config files (the root one and the one in the Views folder) inside the node:

      ...
      
        
        ...
    

    Hope it helps...

提交回复
热议问题