Archive for the ‘SharePoint’ Category
I got an error code 158 today in a FeatureReceiver I had written while trying to delete a MasterPage in the FeatureDeactivated method. I found this helpful blog post explaining the exact problem: http://blogs.msdn.com/ekraus/archive/2008/08/05/cannot-remove-file-error-code-158.aspx In short, the error code means the MasterPage is still in use on the site and so you can’t delete it. [...]
I was struggling to find the source of this error today while working on a SharePoint site. We have a custom page that saves WCF configuration settings for a certain service. It uses an SPPersistedObject to store the WCF configuration form information to populate the form when you visit it later. This method worked fine [...]
I learned something today while trying to add Top Navigation Bar navigation nodes in a SharePoint feature receiver. If you’re adding a node and also wanting to add child nodes of that node at the same time, make sure to actually add the parent node to the TopNavigationBar before trying to add the child nodes [...]
I was getting an error today while working on my company’s custom SharePoint theme on the webpart pages when in edit mode. In IE, you can move the webparts round between the different regions on the page by dragging the webpart headers around. To facilitate this, at some point along the line SharePoint calculates the [...]

