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 was just creating an instance of a userprofilemanager and i get an error in the same line

UserProfileManager myuserprofilemanager = new UserProfileManager(mycontext, true, true);

Error is - "UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have 0d3993c7-9fe0-46b6-ae17-241e6d502bd3"

Any help is highly appreciated.

The stach trace tells at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties() at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.CheckAdministrationAccess(UserProfileApplicationAdminRights rights, Boolean requireAllRights) at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.CheckAdministrationAccess(UserProfileApplicationAdminRights rights) at Microsoft.Office.Server.UserProfiles.ProfileManagerBase.CanManagePeople(UserProfileApplicationProxy userProfileApplicationProxy) at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_IsProfileAdmin() at Microsoft.Office.Server.UserProfiles.ProfileManagerBase.get_IsProfileAdmin() at Microsoft.Office.Server.UserProfiles.UserProfileManager..ctor(SPServiceContext serviceContext, Boolean IgnoreUserPrivacy, Boolean backwardCompatible) at ConsoleApplication1.Program.b_0() in \aucfsrv.auc.ab.ca\hdrives\u50038\Visual Studio 2012\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:line 27 at Microsoft.SharePoint.SPSecurity.<>c_DisplayClass5.b__3() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)

i have set full control User Profile Service Application permission for for the user under which application is running

share|improve this question
    
Show us your code? –  Falak Mahmood Jan 28 '13 at 20:26

1 Answer 1

up vote 0 down vote accepted

I rechecked the Configuration of the user profile and it worked.. Thanks for the help anyway

share|improve this answer

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.