Welcome to TechNet Blogs Sign in | Join | Help

January 2009 - Posts

SPDisposeCheck v1.3.1 is released - and Whitepaper on Best Practices when using disposable objects in SharePoint has been updated

[via Paul Andrew's blog] SPDisposeCheck is a tool to help SharePoint Developers follow memory management best practices when using the SharePoint API with IDisposable objects including SPSite and SPWeb. This tool is not supported by Microsoft and is recommended

Querystring parameters you should not use in your SharePoint application

Today I have been working on a support case where customer experienced exceptions in sharepoint when passing in specific query string parameters which are evaluated by his web parts. The URL looked similar to this: http://servername/Pages/MyPage.aspx?ID=<number>

Interesting SPSite leak pattern

Today I came across a very interesting coding pattern: public void enumSiteCollection(SPSiteCollection spSites, int min, int max) { for (int i = min; i<max; i++) { if ( spSites[i] != null) { DoSomething( spSites[i] ); spSites[i] .Dispose(); } } } On

Article on Content Deployment "Best Practices"

In the past I have released several blogs about the various problems that can occur with Content Deployment. As it is often hard to find the right resource I have now decided to compile the different known issues into one large article: Content Deployment

Guarantee dispose using try / finally blocks

Lots of articles have been written in the past which outline the importance of proper dispose for SharePoint SPSite and SPWeb objects in custom code. One important topic which hasn't been discussed very often till now is how to avoid missing a dispose

Common Problem with Content Deployment: mixing incremental and full deployment

A common error I often see is that customers are mixing incremental and full deployment when deploying a site collection. E.g. use incremental deployment every day and full deployment once a week - just to be sure (maybe because they do not trust incremental?)
 
Page view tracker