Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm trying to retrieve the user profile properties in a webpart so i can display some kind of CV in a new tab on the my sites.

Regarding this tutorial (http://community.bamboosolutions.com/blogs/sharepoint-2010/archive/2010/11/01/sharepoint-2010-cookbook-programmers-guide-to-user-profiles.aspx) i need different references. i looked it up and according to msdn they are a part of .NET 4 which i surely have already installed..

are there some references which i have to add manually?

share|improve this question
    
Can you please explain the specifics of your problem? Can you not find the files to reference? Are you getting an error when trying to build with those references? –  Dave Wise Jul 28 '11 at 22:26
    
i didn't find the files to reference. for me it looked like i just had to use the reference and not add it specifically.. - though i found the files in the meantine ;) thanks –  Peter Aug 2 '11 at 8:32

2 Answers 2

up vote 1 down vote accepted

Are you developing on a system that has SharePoint Server installed? You need to add the project references to

Microsoft.Office.Server Microsoft.Office.Server.UserProfiles

As long as you are on a server with SharePoint Server installed, you will be able to add those references, they are not added by default.

share|improve this answer

Do you have problems writing your webpart, or is this just an informational question? second: you need the .Net 3.5 runtime, not .Net 4.0

share|improve this answer
    
I have problems writing the webpart because i can't add the necessary references.. and i have .NET 3.5 installed :/ –  Peter Jul 28 '11 at 10:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.