Monday, January 26, 2015

Extract Farm Solutions from SharePoint Server

Recently I was setting up a replica of an existing production farm for QA & Dev purposes and I again got myself into a situation where people didn't know which was  the correct version of the code deployed to the farm.  The one pulled from the source control and the one running on the production farm were obviously yards & miles away. While how to do release management is not the part of this post, I wanted to highlight a neat trick that administrators and developers can use to get a copy of solution packages straight from the farm.

The following snippet will help you do just that.

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.