IdentityNotMappedException: Some or all identity references could not be translated

Recently, I ran into an interesting issue.  I thought I’ll post this as I guess most SharePoint Developers could possibly run into it. I used to have my MOSS 2007 development environment on one domain (let’s say mydomain1.com).  I then joined my development environment to another domain (let’s call it mydomain2.com).  Now, after ensuring that…


HowTo: Create a quizzing application with SharePoint 2007

With SharePoint 2007 “Survey” list template, I recently created a quizzing application.  The thing with survey list is that it stack ranks the questions taking into account how many of the respondents favored each options within that question.  But for a quizzing application, we need to be able to stack rank the respondents on how…

18

How do I use SecureString type in SharePoint 2007?

SecureString is the type that’s used for passwords in SharePoint 2007.  You might find its use when you are automating some “higher level” administration operation (like creating a web application for example).  How do you use it is shown below: 1: private static SecureString ConvertString(string strPwd) 2: { 3: if (strPwd == null) 4: return…

3

Wildcard Search in SharePoint

Being able to perform wildcard search is probably an area that’s missing in out of the box search in SharePoint.  Here’s a small web part sample you can use to perform wildcard search in MOSS 2007 (and it can be engineered backward to fit into SharePoint Portal Server 2003 as well). The code in it…

6

The buzz with "UrlQueryString" in SharePoint navigation

SharePoint’s navigation APIs have a property exposed that allows us to set query string properties for a URL.  Sadly, but not surprisingly, this only works when root site collection has publishing feature enabled.  Reason is simple… One a WSS only OR on a site where publishing feature is not enabled, the property “UrlQueryString” is not…

1

FBA and User Display Names in SharePoint 2007

If you have been working with FBA for a while, you might have noticed that the user name displayed in the Welcome control shows the account name of the FBA user.  This is because of the field the welcome control is mapped to. As shown here, the welcome control simply points to the name property…

2

Why are my SharePoint Groups drop-down disabled?

This was an interesting issue.  The problem a customer reported was that when they wanted to add a user to a SharePoint Group, the "Add users to a SharePoint group" drop-down was disabled.  On investigation, it was found the customer was creating a web application and a site collection "on-the-fly", through SharePoint object model code. …

6

What permissions are behind the permission levels (roles) in SharePoint

Recently, I was involved in a support request where I had to find out what SPBasePermissions are assigned behind permission level in SharePoint using SharePoint OM code.  First some basics about permission level and base permissions. If you are in your SharePoint site, click Site Actions > Site Settings > click “People and groups” under…

4

Project to customize the small search control in SharePoint 2007

The small search control that is rendered in the default SharePoint pages is a delegate control rendered through master page.  You can find it defined in the master page as follows: <asp:ContentPlaceHolder id=”PlaceHolderSearchArea” runat=”server”> <SharePoint:DelegateControl runat=”server” ControlId=”SmallSearchInputBox” /> </asp:ContentPlaceHolder> This control is actually available through a feature called “OSearchBasicFeature” located under 12\TEMPLATE\FEATURES.  In the feature…

11

"The site is not assigned to an indexer" error in SharePoint custom search

Strangely enough! We’ll not see this issue with an OOTB search.  It is seen only when we use search APIs or web service and perform a custom search. Apparently, when we use Microsoft.Office.Server.Search, the content database also gets indexed and this content database should be assigned to the particular site we are searching against. The…

1