Author Archives: Stu

Cannot Access a Disposed Object – ModelStore

If you use the database schema compare tool in Visual Studio 2012 you may see the following error when trying to compare the database with the source: Cannot access a disposed object. Object name: ‘ModelStore’ For me, this was arose … Continue reading →

Posted in Visual Studio | Tagged , | 2 Comments

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

Create Zip File

SharePoint Short #17 Not so much a SharePoint post, but can be used in a SharePoint project, so counts for me 🙂 Using the WindowsBase assembly provides access to the System.IO.Packaging namespace and the PackagePart class. Using this class to … Continue reading →

Posted in Shorts | 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