Monthly Archives: June 2011

Error occurred in deployment step ‘Activate Features’: Object reference not set to an instance of an object.

If you are getting this error when deploying your solution using Visual Studio, then check that your feature receivers you are not using objects that would be null when the code is not running under an HTTP context.¬†SPContext.Current for example … Continue reading

Posted in SharePoint 2010 | Leave a comment

How to set AvailableWebTemplates to custom WebTemplate created via features

In SharePoint 2010 you can use the new <WebTemplate> element in a feature to create a custom web template (sort of equivalent to site definition). Good overview of how this compares to other methods of creating site template/definition:¬† In a … Continue reading

Posted in SharePoint 2010, WebTemplate | Leave a comment