Thursday, January 15, 2015

Debug Messages, Stack Trace & the Notorious web.config

The number of times one must enable debugging in web.config is really high and one thing to remember always is that enabling debugging only in the web application's web.config isn't of a lot of help at all times. So always check the following and enable debugging in these places too.

  1. \14\TEMPLATE\LAYOUTS\web.config
  2. \14\TEMPLATE\ADMIN\web.config
  3. Finally the web.config of your web application
Always perform the following on all the config files.
  • customErrors mode="Off"
  • CallStack="true"
  • compilation batch="true" debug="true" optimizeCompilations="true"

And BTW, there's nothing new in here. I just need a place where I can find this every single time I need it.

No comments:

Post a Comment