Blog

Cache Dependencies in SharePoint


04 December, 2008

While writing a data layer based on data stored in a SharePoint list, I implemented the collection as a static singleton that forced refreshes of the data every 15 minutes. A colleague was doing something similar in a roll-up web part and we started discussing Cache Dependency objects used for the HttpContext. Could this work with SharePoint objects? No, says "The Kid". But he gave me a good idea.

Read More...

SharePoint Testing Base Class


04 December, 2008

I have created a base class library for testing SharePoint projects using unit tests, regression tests, integration tests and automated browser tests. It uses the two third-party applications TypeMock Isolator for SharePoint and WatIN. As an example, if a web part calls the SPContext as: 1: /// <summary> 2: /// Primitive sample of web part using the <see cref="SPContext"/> object.

Read More...

SharePoint Solution Installer Fix


01 December, 2008

When using the SharePoint Solution Installer from CodePlex, you frequently receive the error message (as discussed within the discussions on the site)  "This solution contains resources scoped for a Web application and must be deployed to one or more Web applications" This can easily be fixed by changing the code within InstallProcessControl.

Read More...

Extended Lookup - v1.0 (Alpha)


01 December, 2008

The Extended Lookup Field for SharePoint is now in public alpha release. The application works but still needs a lot of refactoring and general tidying up before it is suitable to use on public projects.

Read More...

SharePoint Guidance: Comments


20 November, 2008

In November, Microsoft released the SharePoint Guidance document under their patterns & practices section. The idea of centralized best practices for SharePoint is a compelling one as the bulk reference for the platform is based in loose information from various blogs and discussion forums. After reviewing the document, I felt that some comments and questions were necessary.

Read More...