Here's another in what seems like a growing list of permissions gotchas in SharePoint 2010. Assume if you will, you are a crack developer and building a custom application for SharePoint 2010. You're writing code on your development server, which has a FULLY functioning installation of SharePoint 2010. You want to work with some user profile data, so you create an instance of the UserProfileConfigManager. Strangely, when you do this you get an exception that says "No User Profile Application available to service the request. Contact your farm administrator."
Hmm, seems strange. You double check your settings, your user profile service application is up and running. You're probably a farm admin even in this scenario and you are able to manage it - so what is the scoop? You may think, ah, I need to grant myself rights to manage the application. We've seen that behavior in another posting I published just today on working with FAST user contexts. So you find your user profile service app, click on the Administrators button in the ribbon and give your self Full Control rights to it. You try again - same problem. Grrr! Yes, this can get frustrating. As it turns out, there is yet another place where you may need to set permissions, and this is one of those cases. If you look in the ribbon when you select a service application, you will see the Administrators button, but there is also the Permissions button on the far right. In this case, click the Permissions button. Add your account and give it Full Control rights. NOW, go back and try your code again - this time it should work.
Sorry, I wanted to add one other scenario I have seen happen. Many times you create the ServiceContext for getting the UserProfileManager by getting a reference to an SPSite and then using the SPServiceContext.GetContext method. What I have seen happen before is that if that site that you create the SPSite reference to allows anonymous access, you may still get this error. When disabling anonymous access at the site collection level it started working. Just another FYI.
After some "Grrr!" I finally found your blog post. Thank you!
http://dichvuketoanlongbien.com/
http://dichvuketoanlongbien.com/a2-96-dich-vu-ke-toan-tron-goi.html
http://dichvuketoanlongbien.com/a2-98-dich-vu-ke-toan-thue.html
http://dichvuketoanlongbien.com/a2-103-dich-vu-bao-cao-tai-chinh.html
http://dichvuketoanlongbien.com/a2-97-dich-vu-quyet-toan-thue.html
http://dichvuketoanlongbien.com/a2-114-dich-vu-ke-toan-tai-29-quan-huyen.html
http://dichvuketoanlongbien.com/i780-dich-vu-ke-toan-thue-tron-goi-tai-bac-ninh.html
http://dichvuketoanlongbien.com/i779-dich-vu-ke-toan-thue-tron-goi-tai-bac-giang.html
http://dichvuketoanlongbien.com/i778-dich-vu-ke-toan-thue-tron-goi-tai-phu-tho.html
http://dichvuketoanlongbien.com/i781-dich-vu-ke-toan-thue-tron-goi-tai-hung-yen.html
http://dichvuketoanlongbien.com/i782-dich-vu-ke-toan-thue-tron-goi-tai-vinh-phuc.html
http://dichvuketoanlongbien.com/i783-dich-vu-ke-toan-thue-tron-goi-tai-hai-phong.html
http://www.trungtamketoan.com.vn/
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-ha-noi.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-tp-hcm.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-quang-ninh.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-hai-duong.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-bac-giang.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-bac-ninh.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-hai-phong.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-nam-dinh.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-thai-binh.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-thanh-hoa.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-vinh-phuc.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-hung-yen.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-phu-tho.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-binh-duong.html
http://www.tosvn.com
http://iketoan247.blogspot.com
http://tailieuveketoan.blogspot.com
http://mauhinhnendep.blogspot.com
http://www.tosvn.com/search/label/Hack%20CF
http://www.tosvn.com/search/label/Hack%20AvatarStar
http://www.tosvn.com/search/label/Hack%20Warcraft-Dota2
http://www.tosvn.com/2014/12/hack-truy-kich-mien-phi-hack-truy-kich.html
http://iketoan247.blogspot.com/search/label/thong-tin-kinh-te
http://iketoan247.blogspot.com/search/label/tin-bai-ve-thue
http://hoclamketoan.edu.vn/
http://hoclamketoan.edu.vn/category/khoa-hoc-ke-toan
http://hoclamketoan.edu.vn/category/dich-vu-ke-toan
http://hoclamketoan.edu.vn/category/hoc-lam-ke-toan
http://hoclamketoan.edu.vn/category/tai-lieu-ke-toan
http://hocketoan360.com/
http://hocketoan360.com/category/khoa-hoc-ke-toan/
http://hocketoan360.com/category/dich-vu-ke-toan/
http://hocketoan360.com/category/tai-lieu-ke-toan/
http://me.zing.vn/zb/u/htdung2281990
http://me.zing.vn/zb/c/htdung2281990/6594341
http://me.zing.vn/zb/c/htdung2281990/1
This is a funny thing. I tear down and build up this service so often on my dev machine, I've forgotten this piece more than a couple times only to return to this same blog post. Thanks, Steve.
Referenced your post in my one: blogs.technet.com/…/configure-service-application-permissions-in-sharepoint-2010-using-powershell.aspx
Thanks for the info!
FYI, Today I was receiving the "No User Profile Application available to service the request" message and followed the instructions in this blog post and also reset IIS. For some reason, it did not clear up until I switched the service connections on the web application to 'custom' and then switched them back again to default. I did this for both the main app and My Sites, and afterward, the error disappeared. The resolution may be some combination of permissions, IIS reset, and service connections… I don't know, and at this point, I'm just glad it's working. 🙂
what do I do if I get this error when I try to open user profile service application ??? I'm going nutz…
Thanks for sharing! Still helping.
i am still in Grrrrrrrr! mode.. tried giving full access to me.. still same grrrrr. help me
Have you double checked it?
For me it also didn't work but after a restart I found the user lost so I retried and it worked at once!
Will try this out and report back the results.
Thanks so much !! After an IISRESET it worked perfectly !!
Worked for me, remember to close and reopen your pshell window 😉
Thanks for the tip. No more Grrrrrrr moments here 🙂
Thank you for this post! It saved me a lot of time and grrrrs 🙂
I tried this still problem with the profile service
Thanks.. This helped me out with a program that I was trying to use to do a bulk import of user profile pictures. I did have to reboot the server. though an IISRESET may have worked!
Thanks, saved me a lot of time to find this blog post! 🙂
You my god! It is really best post in my life!! )) Solve problem for Profile it is really that I need! It is like shoot in apple!
Thanks very much for your sharing!
It really helps me a lot!
It's a good approach but my Grrrrrrr's not stop. I receive this error when I add a Outlook WebPart 🙁
Hey thanks a lot for this!!! It fixed my problem of doing some unit testing locally…
Grrrr….. just wanted to join in the general growling. Thanks – had exactly this problem and your solution worked first time!
Just what I needed at the right time. Thanks for the post, you saved me some hair-pulling.
This is right on. I appreciate you posting this.
I got the error after recreate the User Profile Appliction Proxy, I fixed it configuring the Service Applications Associations.
You saved the day!
Thank for this post. It helps me a lot.
I followed KCRyan318, I switched the service connections on the web application (only) to ‘custom’ , and select all service as the default profile do. The error disappear immediately.
Then I switch it back to default, no futher error occur.
http://www.shopbestgoods.com/
http://www.nike-jordanshoes.com/
http://www.beatsbydreoutlet.net/
http://www.michaelkorsus.com/
http://www.polo-tshirts.com/
http://www.northsclearance.com/
http://www.ralph-laurensale.com/
http://www.gucci-shoesuk2014.com/
http://www.michael-korsusa.com/
http://www.polo-outlets.com/
http://www.ralphslauren.co.uk/
http://www.marcjacobsonsale.com/
http://www.mcmworldwides.com/
http://www.salongchamppairs.com/
http://www.canada-gooser.com/
http://www.burberryoutlet2014.com/
http://www.michaelkors.so/
http://www.hermes-outletonline.com/
http://www.oakley-sunglassoutlet.com/
http://www.north-faceoutlets.net/
http://www.moncler-clearance.com/
http://www.woolrich-clearance.com/
http://www.barbour-jacketsoutlet.com/
http://www.moncler-jacketsoutletonline.com/
http://www.monsterbeatsbydres.net/
http://www.louis-vuittonblackfriday.com/
http://www.lv-guccishoesfactory.com/
http://www.mcmoutlet-jp.com/
http://www.cheapdiscountoutlet.com/
http://coachoutlet.iwopop.com/
http://www.coachsfactoryoutlet.com/
http://www.coach-blackfriday2014.com/
http://www.coach-storeoutletonline.com/
http://www.coach-factorysoutletonline.com/
http://www.coachccoachoutlet.com/
http://www.coach-factories.net/
http://www.coach-pursesoutletonline.com/
http://www.llouisvuitton-factory.net/
http://www.coach-outletsusa.com/
http://www.mksfactoryoutlet.com/
http://www.zxcoachoutlet.com/
http://www.mischristmas.com/
http://www.misblackfriday.com/
http://www.bestcustomsonline.com/
http://www.newoutletonlinemall.com/
http://www.clickmichaelkors.com/
http://www.cmichaelkorsoutlet.com/
http://www.ralphlaurenepolo.com/
http://michaelkorsoutlet.mischristmas.com/
http://mcmbackpack.mischristmas.com/
http://monsterbeats.mischristmas.com/
http://northfaceoutlet.mischristmas.com/
http://mk.misblackfriday.com/
http://coachoutlet.misblackfriday.com/
http://coachfactory.misblackfriday.com/
http://uggaustralia.misblackfriday.com/
http://coachpurses.misblackfriday.com/
http://coachusa.misblackfriday.com/
http://coach.misblackfriday.com/
http://michaelkorss.misblackfriday.com/
http://michaelkors.misblackfriday.com/
http://airmax.misblackfriday.com/
http://michael-kors.misblackfriday.com/
http://t.co/1PJuejI1ys
http://t.co/FYm2MxWwLM
https://twitter.com/CoachOutlet2014
https://www.facebook.com/pages/Coach-Factory-Outlet-Online-Store-Michael-Kors-Outlet-Online-Sale-75-Off/712060898859091
https://www.facebook.com/pages/Ralph-Lauren-Polo-Outlet-Online-Sale/1404100279810690