Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Developing using the Portal DLLs

  Asked By: Dontae Rosa         Date: Sep 25, 2005      Category: Sharepoint      Views: 195
 

I am developing an application that update the profile of a user
(using the Profile Object Model). I am developing on VS.NET 2003 on
an XP machine, with SPS installed on W2K3.

From the SDK:

TopologyManager topology = new TopologyManager();
PortalSite portal = topology.PortalSites[new Uri("portalURL")];
PortalContext context = PortalApplication.GetContext(portal);
UserProfileManager m_mngr = new UserProfileManager( context );
UserProfile user = m_mngr.GetUserProfile("WindowsUseraccount");

Console.WriteLine("Property to be changed : " + sProperty + " to " +
sValue.ToString() );
user[sProperty] = sValue;
u.Commit();

But on compiling, I got an error stating that the references to the
Sharepoint.Security could not be found. After obtaining the
necessary DLLs from the SPS server (as detailed at :
http://www.sharepointu.com/forums/HELP!_I_need_Microsoft%
25Sharepoint%25dll_!!!/m_8713/tm.htm )
I now get this error:

"Sharepoint Product registry key not found"

What am I missing?


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:          

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Developing using the Portal DLLs Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].