Author Archives: Stu

Hide Web Template

In PowerShell, if you want to remove a web template from the New Site dialog for a specific web, take a look at the following script: function Remove-SPWebTemplate { [CmdletBinding()] param( [parameter(Position=1,Mandatory=$true)][Microsoft.SharePoint.SPWeb]$web ) process { $templateList = New-Object "System.Collections.ObjectModel.Collection“1[[Microsoft.SharePoint.SPWebTemplate, Microsoft.SharePoint, … Continue reading

Posted in SharePoint | Tagged , | Leave a comment

LDAP Role Provider Argument Exception

If you’re seeing the following error in the ULS logs, hopefully it’ll be as simple a fix for you as it was for me: LdapRoleProvider.GetRolesFor() exception: {0}.System.ArgumentException: The (&(((ObjectClass=group))(member=CN=Some User,CN=Users,DC=domain,DC=local)) search filter is invalid. at System.DirectoryServices.SearchResultCollection.ResultsEnumerator.MoveNext() at Microsoft.Office.Server.Security.LdapRoleProvider.GetRolesFor(String userOrGroupDN, DirectoryEntry … Continue reading

Posted in Configuration, SharePoint | Tagged , , | Leave a comment

External Content Type Walkthrough

Looking to design your own external content type and deploy it as part of a SharePoint solution? Read on for a walkthrough on how to create one. First up, the steps are the same for SharePoint 2010 and 2013 and … Continue reading

Posted in SharePoint | Tagged , | Leave a comment

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

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