Category Archives: SharePoint

NullReferenceException using AssetUrlSelector

If you’ve been using the AssetUrlSelector for SharePoint the following may help if you’ve recently started getting the following error in the ULS logs and are not able to view list items. Error while executing web part: System.NullReferenceException: Object reference … Continue reading

Posted in SharePoint | Tagged | Leave a comment

User Profile Sync

Sometimes, when trying to create an alert in SharePoint you receive the following error message: You do not have an e-mail address. Alert has been created successfully but you will not receive notifications until valid e-mail or mobile address has … Continue reading

Posted in Configuration, SharePoint | Tagged , , | 2 Comments

MVP SharePoint WebPart

There are many development patterns available and one that I like is Model-View-Presenter (MVP). With the MVP pattern, there are different variations that you can use. For example, there’s a variant called Passive View and another called Supervising Controller. They … Continue reading

Posted in .Net, SharePoint | Tagged , , | Leave a comment

DateRangesOverlap

When working with calendar items created with recurrence patterns, there’s no immediately obvious way through the object model to expose the individual recurrence items. If you create a calendar event with a daily recurrence pattern which generates 6 separate events, … Continue reading

Posted in SharePoint | Tagged , | Leave a comment

Hide SharePoint Ribbon Items

To hide a menu item from the SharePoint ribbon add a custom action to a module in your Visual Studio SharePoint project: <CustomAction Id="CustomIdentifier.Ribbon.Documents.New.NewFolder.Hide" Location="CommandUI.Ribbon" RegistrationType="ContentType" RegistrationId="0x"> <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.Documents.New.NewFolder"> </CommandUIDefinition> </CommandUIDefinitions> </CommandUIExtension> </CustomAction><CustomAction Id="CustomIdentifier.Ribbon.Documents.New.NewFolder.Hide" Location="CommandUI.Ribbon" RegistrationType="ContentType" RegistrationId="0x"> <CommandUIExtension> … Continue reading

Posted in SharePoint | Tagged , | 1 Comment