Roland Oldengarm - Independent IT Contractor

Living in the coolest little capital Wellington, New Zealand!

Month: February 2011

Failed to compare two elements in the array

SharePoint 2007 / 2010: When provisioning page layouts and receiving the error: Failed to compare two elements in the array, look at the property PublishingAssociatedContentType, the referred contenttype is misspelled.

Server Error in ‘/’ application

You probably have seen this error:
Server Error in '/' Application.
Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955
The resource cannot be found. Continue reading

ContentByQueryWebPart: grouping and sorting

When you configure a ContentByQueryWebPart to group and sort data, the data is first sorted on the GroupBy-field and then on the SortBy-field. In my case, I have a webpart grouping by on a field named “Category” and sorted on a field named “SortIndex”. However, I don’t want to sort on Category, only on SortIndex. Continue reading

Minimal effort to create webpart property in SharePoint

When creating a new webpart, or extending an existing webpart, you might want to add properties which can be configured. Using the following code-segment you can do this with the minimal ammount of effort: Continue reading