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 am working on a Feature in C# in VS2010 for a Sharepoint 2010 site. The business logic requires working with user accounts, so we are using UserProfile and UserProfileManager. Theoretically (I have found in several places) those should be located in the Microsoft.Office.Server.UserProfiles.dll assembly. I have no idea where to find this file, however. I have a local install of SP Server for development purposes and accordingly have the remainder of the references for Microsoft.Sharepoint and its "children" assemblies Search and Security in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\. The appropriate UserProfiles DLL is not located in this directory.

Though I have found evidence they no longer contain the necessary object binaries, the MS Office Interop assemblies do not show up in my 'Add Reference' dialogue box. Additionally I am unable to reinstall them because the PIA installer fails - presumably because they are already installed (I've worked on Office Interop projects in the past with success).

Does anyone have a hint on where these libraries can be found/downloaded?

share|improve this question
    
what is your environment? SharePoint & Visual Studio -version & edition, etc.. –  Supriyo SB Chatterjee May 10 '12 at 19:00
add comment

3 Answers 3

up vote 2 down vote accepted

Within Visual Studio 2010 - when you 'Add Reference' (right-click the 'References' node in your VS 2010 project), it should be listed under the 'SharePoint' tab (for dll references).

The dll is located here (in my default VS 2010 installation) - C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\Microsoft.Office.Server.UserProfiles.dll

share|improve this answer
    
Yes the majority of the Sharepoint DLL's are located there, but as I said, not the appropriate ones I require. I don't see the tab you're talking about in the Add References dialogue. I will be rebuilding my development environment as I suspect this has to do with the Sharepoint install not being the Enterprise version. –  zwerdlds May 10 '12 at 22:23
    
Are you sure you've got a SharePoint server installation and not SharePoint Foundation? That dll should be in ISAPI. The SharePoint tab in Add Reference is only available if you've installed the CKS toolkit (which you should) –  Per Jakobsen May 11 '12 at 13:01
add comment

In MOSS 2007, you use the Microsoft.Office.Server.UserProfiles namespace in Microsoft.Office.Server.dll to work with a user's profile. But in SharePoint Server 2010, you should use the Microsoft.Office.Server.UserProfiles namespace in Microsoft.Office.Server.UserProfiles.dll (the same namespace but with a different assembly).

Should be in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\ISAPI provided you are running Office server.

share|improve this answer
add comment

I'm not sure what the root cause is but you can pull the DLL of the installation ISO.

On the enterprise DVD ISO you can find the DLL in the .CAB file Global\Ppl\pplwfe.cab.

share|improve this answer
add comment

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.