Geeks With Blogs
Wayne Magnum's Blog

Has anyone ever had a problem trying to retrieving the userprofile utilizing the Microsft.SharePoint.UserProfiles reference and received an error "Server Context parameter cannot be null". The work around solution that I found out was to make a call to the SharePoint Web Services and retrieving the user’s information...

Make a reference to: http://<ServerName>/_vti_bin/UserProfileService.asmx
UserProfileSvc.UserProfileService profileService = new
UserProfileSvc.UserProfileService();
profileService.UseDefaultCredentials =
true
;
UserProfileSvc.PropertyData[] userProperties =
null
;
userProperties = profileService.GetUserProfileByName(
null);

Posted on Tuesday, January 15, 2008 2:21 AM SharePoint 2007 | Back to top


Comments on this post: Microsoft SharePoint Office Server (MOSS) UserProfiles

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Wayne H Magnum | Powered by: GeeksWithBlogs.net