Stefan Goßner

Recently I came across another very interesting coding pattern which is very similar to the interesting SPSite leak I showed a couple of days ago. public void workOnArea(Area area){      if (area.Web != null)      {            string url = area.Web.Url;            area.Web.Dispose();      }} On a first look the code look ok, right? Ok, no try/catch blog […]

[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 to be used on Developer workstations and not on production SharePoint Server installations. It was released […]

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 a first look the code look ok, right? Ok, no try/catch blog […]

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 – 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:    Avoiding common problems Problem 1: Mixing deployments with and without retaining object […]

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 in case that an error occurs during execution of custom code. Roger […]

The Content Editor Web Part as we ship it in WSS and MOSS always stores URLs as absolute Links. That will cause problems as soon as you are extending a web application to multiple IIS websites or when using Alternate Access Mapping (AAM) to support multiple zones. In these situations the CEWP will return the […]