admin管理员组

文章数量:1296302

I am working on a legacy Web Forms project written in VB. When an authorized client makes a bad request, my application response returns a full stack trace that I want to hide.

I have a redirect error page configured but this is specifically to handle a bad request that a client initiates on the browser.

This is similar to another question: Hide / Remove Stack Trace information

The stack trace warnings show up in the API request like in the above question:

So far I have tried modifying web.config to set compilation debug = False, check to make sure redirect is enabled for bad requests, ensure that the default trace enabled="false" is not overridden anywhere.

Any suggestions would be appreciated.

本文标签: aspnetLegacy VBNET Hide Stack Traces For Bad Requests To Web ServiceStack Overflow