Is it possible to use custom error pages with MVC site but not Web API?

前端 未结 3 1293
旧时难觅i
旧时难觅i 2020-12-08 02:29

I have an MVC project with a /api folder which contains my Web API controllers. I want the following things:

  • My MVC site to serve a custom error page when an e
3条回答
  •  感动是毒
    2020-12-08 03:00

    What have worked for me:

    
      
      
      
      
      
      
    
    

    Seems like just setting existingResponse="Auto" will do the job.

提交回复
热议问题