SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I get very strange exception:

"exception occured while connecting to wcf endpoint. Access denied"

Only when I go to any Document Library.

I have logged as Administrator and I have added "Full control" Permissions for it on "User profile service application".

I have searched on Google but non of workarounds helped me to solve the problem. It is my developing envrionment and I have created a new web appliction.

share|improve this question
Check your IIS and ULS logs to see if you can identify the specific error message on the backend. – John Chapman May 8 '12 at 16:07
I looked att iis log files couldn't find any strange there. some days ago I run dsinit /sqlinstance :. to initialize storage for Windows Azure localy, I am wondering if it may changed some configurations. – Medes May 9 '12 at 11:39
What credentials are you passing to the WCF when you attempt to connect to it? Do you explicitly enter a username/password in the code, or are you telling the program to use your windows credentials? – NotVonKaiser Sep 1 '13 at 18:05

I think the problem might have something to do with SharePoint's IIS application pool user account ("Identity"). If you are using a user account that has no persmission set in central administration for the "User profile service application" then this error occurs.

To resolve the issue grant "Full Control" permission to your application pool user account:

  • Goto service applications page in central administration
  • Select "User profile service application"
  • Click on button "Permissions" in the Ribbon
  • Add the user account to list and then grant "Full Control"

Hope this was the causing of you problem. SharePoint configurations can be a real pain.

share|improve this answer
Thank you for your advice, I have alredady done it. and it didn't help. – Medes May 31 '12 at 13:33

Your Answer


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.