[![enter image description here][2]][2]
In below picture how to avoid showing of framework versions in default error message by IIS?
[![enter image description here][2]][2]
In below picture how to avoid showing of framework versions in default error message by IIS?
In below picture how to avoid showing of framework versions in default error message by IIS?
As far as I know, if you set the custom error's mode attribute to On or remoteonly in the web.config. It will hide the details information for the error message and framework versions in default error message by IIS like below:
There is no need to hide the framework versions when you debug the whole application in the server, since customer will not see the details error message.
yes create a custom response
If you want to create a custom error handler for asp.net web api, I suggest you could try to create a class inherits ExceptionFilterAttribute and overried the OnException method.
More details, you could refer to below answer's error handling part.