.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

GetRoleCollectionFromUser() returns "User Not Found" 0x80131600 in Sharepoint 2007

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :SharePoint


I am using GetUserCollectionFromSite() to get the list of users for a site, and with the same list i am calling
GetRoleCollectionFromUser() using login Name i got from previous method. The method is returning a "User Not found" 0x80131600 error. I am the site collection admin for this site and even if i hard code my login name as Domain\UserName(NT ID in this case) i get this error. Please help.

This is in Sharepoint 2007



View Complete Post

More Related Resource Links

SharePoint Designer 2007 People lookup in Dynamic String returns undesired value


Background: SharePoint 2007 servers with Site Collection Admin access, using SPD 2007.

While attempting to build email body and subject line text using Dynamic text action in a workflow, I can add a look-up to a field (defined as People/Groups) to return a value for the email text. While this does give that correct reference to the Person, the returned value is the Account value, not the Name value.

Example Text Returned: ...a new vaation request has been submitted by Domain\JSmith for your review and approval...

Desired Text Returned: ...a new vaation request has been submitted by John Smith for your review and approval...

In the People and Groups: User Information page it show the following fields:

Given that I can see that the standard built-in Task Notification emails used in SharePoint 2007 show the Name, not the Account, I'm wondering how/if I can do the same in my dynamic string look-up.

Looking at the XOML XML code I see the lookup, and I'm not disuaded by editng the code by hand (by opening as XML in SPD) instead of the using the SPD GUI for this.

Here's how the look-up is coded by the SPD GUI:

Write Custom WebParts for SharePoint 2007

The popularity of SharePoint Portal Server 2003 led Microsoft to tightly integrate the next SharePoint version, Microsoft Office SharePoint Server (MOSS) 2007, with its ASP.NET 2.0 WebPart framework. This tight integration enables the ASP.NET and SharePoint developer to do a number of things that previously weren't possible

SharePoint 2007 Workflows - Things to Consider Before You Start

SharePoint 2007 (MOSS) utilizes the Workflow Foundation (WF) to enable workflows on lists and content types. But before you start doing cartwheels there are few things you should know before you get started. The experiences I'll be discussing are not from book smarts but from building real MOSS solutions that are in production today.

Writing Custom Web Parts for SharePoint 2007

As I mentioned in an earlier blog post, SharePoint 2007 is built on top of ASP.NET 2.0, which means you can now use ASP.NET 2.0 features (Forms Authentication, Master Pages, Membership, Site Navigation, New Data Controls, etc) when building SharePoint sites. This is true for both the new Windows SharePoint Services 3.0 version (which will be a free download) as well as Microsoft Office SharePoint Server 2007 (which costs money).

Office Space: Custom Field Types for SharePoint 2007


Custom field types provide a powerful way to define a reusable SharePoint column definitions.

Ted Pattison

MSDN Magazine May 2009

MOSS 2007: Automate Web App Deployment with the SharePoint API


Learn how to automate custom SharePoint application deployments, use the SharePoint API, and avoid the hassle of custom site definitions.

E. Wilansky, P. Olszewski, and R. Sneddon

MSDN Magazine May 2008

Office Space: Security Programming in SharePoint 2007


This month Ted Pattison presents an overview of programming security and permissions for Windows SharePoint Services 3.0.

Ted Pattison

MSDN Magazine February 2008

Office Space: Events in SharePoint 2007


Windows SharePoint Services (WSS) 3.0 provides a new and improved infrastructure for handling server-side events. In this installment of Office Space, we look at techniques for hooking up Before Events and After Events using both Features and code.

Ted Pattison

MSDN Magazine November 2007

Office Space: Solution Deployment with SharePoint 2007


WSS 3.0 introduces a new deployment mechanism that lets you move your development efforts into a staging or production environment.

Ted Pattison

MSDN Magazine August 2007

How to add custom list entries to mysite's calendar in Sharepoint 2007 site?


I would like to know below things

(1) How to create MySite for one specific member with other or administrator's access?

(2) Scenario : Administrator have created one SP2007 site. now Administrator have created one calendar (Sample calendar). Administrator have added some entries in calendar. now one user entered in portal site ansd view the calendar and he click on MySite menu. so this sample calendar entries should enter in that user's mysite calendar. How this can be achieved?

Thanks in advance.
Regards, Praful Udade

Profile Pictures not displayed in Discussion Board in SharePoint 2007

Picture Placeholders are displayed instead of Profile Images in Discussion boards in MOSS 2007 but when you click on the user, their pictures appeared in MySites, also with Search People. How to fix this?!

How to enable Mixed authentication for single webapplication in sharepoint 2007?


Hi All,

      I have requiremnt to enable Mixed mode ( Windows & Forms Based) authentication on Single web application( with out extending). I have done it in Sharepoint server 2010, It is so simple also. But my requirement is on Moss 2007. I have found some Post and gone through Those posts, in those posts, all are suggesting to extend the default webapllication and enabling forms authentication on extending/Default application another one is on Wondows authentication.

  Is it way to suggest the client or any other alternative to enable the mixed mode authentication?

please suggest me with right solution. Thank you in advance.

Thanks & regards,

Naresh Kapa.


Best Practices for developing accessible web sites in SharePoint 2007


I'm currently busy with an overview of Best Practices for developing accessible web sites in SharePoint 2007. After a little research I have noticed that the challenges I have faced so far are mostly XHTML/CSS/JS related and there are actually very few SharePoint 2007 specific issues: this has to do with the fact that we use very little to none of standard SharePoint controls in the Internet facing web sites we deliver.


As I would like to share the Best Practices I'm writing with the community I've been wondering whether you have tried to develop an accessible web site in SharePoint 2007 yourself and faced any challenges you would like to share. To make myself clear I'm looking for issues and challenges and not solutions in particular (these are welcome as well by the way).

SharePoint 2007 WCM Solutions can be accessible


Recently I've been busy with a research on accessibility of Web Content Management solutions based on SharePoint 2007. My outcome is: SharePoint 2007 WCM solutions can be accessible and depending on the approach you can score up to 95% WCAG 1.0 Priority 2.0 compliancy without any toolkit.

I've been wondering whether anybody else shares my opinion or has his/her own...

301 Redirect in sharepoint 2007



We are going live with our new site on internet shortly and we wnat to do an 301 redirect from old url to our new url. e.g. our url http://www.abc.com/def/ and the new url http://www.abc.com/efg/klm/zzz.aspx  [The domain is same]. It will raise a 404 if we are not set the 301 redirect.

Please let me know how can we do this?

In sharepoint excel working fine in office 2007 but not in office 2010


Hi All,

we receive error  while trying to create excel sheet using the template we have uploaded on the SharePoint 2007.


This occurs on a machine that has Office 2010 installed. Earlier the machine had Office 2007 and everything was working fine.


Can you let me know why is problem is coming and how to resolve this.



Sanjeev Tiwari


sharepoint 2007 indexing issue


when we do incremental crawl, the items in index start decreasing and the error count remains the same. so it is hard to find what is causing the index items to reduce. can anyone help please. i had to pause the active crawl because of this index item decrease.

I have checked the following:

1) there is no space issue

2) no credential issue

What I found a bit fishy is that:

1) in the log, i got ->

a)get REGKEY_FLTRDMN_MS_TO_IDLE, using default - _File:\office\source\search\search\gather\fltrdmn\fltrdaemon.cxx Line:323

b) Server Office Server Shared Services 6pls Medium Cache blocked for shared object '1dd1db1d-8a07-4e27-9249-b7d328818fa2' of type 'Microsoft.Office.Server.Search.Administration.SearchSharedApplication'

Please help.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend