Author Archives: Stu

Loopback Check and 401.1 Error

SharePoint Short #18 If you’re developing a web service for SharePoint, or trying to access one of the SharePoint web services, through server code and get a 401.1 Unauthorized exception, it’s worth checking if the status of the loopback check, … Continue reading →

Posted in Configuration, Shorts | Tagged | 1 Comment

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