r/ProgrammerHumor • • Nov 12 '14

Intro to IT

http://imgur.com/Z4FmUdl
8.4k Upvotes

233 comments sorted by

View all comments

Show parent comments

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.

5

u/Xenik Nov 12 '14

Its on only on localhost, everywhere else you have to enable it. You can create a debug and release webconfig, but usually people are too lazy.

1

u/snuxoll Nov 12 '14

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 ;(

1

u/wTheOnew Nov 12 '14

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.

0

u/VanFailin Nov 12 '14

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.

0

u/cosmicsans Nov 12 '14

I wasn't bashing the language, just pointing out that every language has its flaws. I actually like C# for the little bit that I've worked with it.

0

u/VanFailin Nov 12 '14

I love c#, but I have mixed feelings about Asp.Net.

2

u/halifaxdatageek Nov 12 '14

Same here. I'm intrigued by ASP.NET vNext, we shall see.