How to simulate an HTTP 500 error on my ASP.NET app?

前端 未结 6 2023
甜味超标
甜味超标 2020-12-29 04:37

I want to simulate this error so I can check a generic error page is displayed, not the HTTP 500 one, in light of the recent security vulnerability.

We include speci

6条回答
  •  灰色年华
    2020-12-29 05:16

    Change the name of your dll file. It will crash the app if you ask for a route afterwards because it won't find the controller. I used this to test my logging.

提交回复
热议问题