Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

User Profile Photo upload

$
0
0

Hello All - I am trying to upload the picture of the selected user using webpart following http://nishantrana.me/2013/12/18/upload-user-profile-picture-programmatically-in-sharepoint-2013/ article. I am executing with elevated privilege (Farm Admin) still it is throwing error that "Site has not been shared with you" on

SPFolder subfolderForPictures = web.Folders["User Photos"].SubFolders["Profile Pictures"];

I checked that Admin has permission on "Profile Pictures" folder and "User Photos" library as well as on mysite.

Could anybody please guide me? 

Regards,


Khushi



Viewing all articles
Browse latest Browse all 7589

Trending Articles