Navigate Up

Sharepoint Client Object model unable to authenticate to anonymous site   

Tags: SharePoint2010, Client Object Model
Technorati Tags: ,

I found a very interesting webpart for my new website which is built with SharePoint 2010 Foundation Server.

This webpart is made by ton stegeman it is a Silverlight bing map. Which gets data out of lists via the Client Object Model.

Great!!

After downloading the code I made couple of changed since I did not want to load it from comments but another list.

When I started to debug I got security errors the problem is that ClientContext is not able to authenticate against a anonymous site.

I hope they are going to fix it for Release Candidate or RTM.

Or if you have a workaround please let me know(of course with the ClientContext)

The workaround I am going to use is a webservice to the list. Which still works in SharePoint 2010 Beta.

Hope this post helps you with developing for SharePoint 2010.

 

 
Posted by  System Account  on  1/20/2010
2  Comments  |  Trackback Url  | 0  Links to this post | Bookmark this post with:                        
 

Links to this post

Comments


Pham Trung  commented on  Monday, January 25, 2010  3:14 PM 
Hi paulk I think the SharePoint 2010 Client Object Model is just library that wrap SharePoint Web Services. So you know, the SharePoint Web Services do not work with Anonymous role. If you want to use SharePoint Client Object Model from REMOTE site, you must provide the credential. Another interesting about SP 2010 Silverlight Client Object Model: Currently, it could not use from REMOTE site. You must deploy SILVERLIGHT PACKAGE in current SharePoint site.


Praveen  commented on  Sunday, April 04, 2010  9:32 PM 
All about Client Object Model in SharePoint 2010 here.

http://praveenbattula.blogspot.com/search/label/Client%20Object%20Model



Name *:
URL:
Email:
Comment:


CAPTCHA Image Validation




© Copyright 2009 KbWorks