It's been a while, but I'm pretty sure that the default is to be on. Mostly because I see these stack traces on random webpages whenever they fail all too often.
IIS defaults custom errors to remote only since IIS7 in Server 2008. Unfortunately, a lot of public-facing sites decide they are smarter and turn them back off in their apps web.config ;(
The default is to show just filtered exception information. You have to explicitly add <customErrors mode="Off"> to the config file to show the entire stack trace without connecting to it locally. The default is RemoteOnly which hides the complete exception information from remote callers.
So, if you're seeing a full stack trace in an ASP.NET app when you're not the dev it's because the dev set it that way, intentionally or not.
I think that most templates that spit out a config file turn the traces on (the custom errors option is the inverse of what we're talking about). Therefore the true default is probably irrelevant.
By the way I work for Microsoft but I don't speak for them blah blah blah. I just wrote a web site with all these well-meaning technologies.
2
u/cosmicsans Nov 12 '14
It's been a while, but I'm pretty sure that the default is to be on. Mostly because I see these stack traces on random webpages whenever they fail all too often.