ASP.Net user errors on specific hosts

Is there a way to display user errors on specific hosts (for example: www.example.com) and display vanilla errors on others (for example: beta.example.com)?

I am thinking of configuration syntax lines that can be added to the customErrors section of the web.config file.

This is valid for MVC 3, if that matters.

Sites are hosted on separate servers. http://beta.yogaloft.co.uk/ is automatically created and deployed by appharbor and upgraded to http://www.yogaloft.co.uk/ whenever it is ready for the wild.

+3
source share
2 answers

, HandleErrorAttribute www.example.com?

, HandleErrorAttribute (HandleCustomErrorAttribute: HandleErrorAttribute) , , example.com, , .

, .

+2

, . , - customErrors="RemoteOnly" - . .

+1

All Articles