Microsoft Land

The method “GetItems” of the type “List” with ID {..} is blocked by administrator on the server

Posted on: May 13, 2011


Have you ever faced this error on a MOSS 2010 website.  Here is a scenario that I came across.

We are launching a Public facing website which is built on top of MOSS 2010.  When we are testing the site in QA environment enabling the Anonymous access on the Extended Web App, we started getting this error when we are accessing the lists using Client Object Model.

So basically this an error that we normally get when there is an Anonymous site which has Client Object Model used which is accessing the lists on the site.

Fix,

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spclientcallablesettings.aspx

Open SharePoint 2010 Management Shell (Or Open Power Shell and Load MOSS Modules)

Insert command Get-ExecutionPolicy (This will show the current Execution Policy – Make a note of it).

$webapp = Get-SPWebApplication “<<your web URL which is having the issue>>”

$webapp.ClientCallableSettings.AnonymousRestrictedTypes.Remove([microsoft.sharepoint.splist], “GetItems”)

$webapp.Update()

Now that you have changed the settings, revert back the Execution Policy to what ever it was earlier.

Set-ExecutionPolicy <<What ever it was earlier>>

Hope this will help.

About these ads

3 Responses to "The method “GetItems” of the type “List” with ID {..} is blocked by administrator on the server"

Doesn’t work in Office 365 hosted by Microsoft

[...] found solution on this blog. But I googled a bit more & found interesting details so sharing them. Thanks to the [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

My Tweets

Follow

Get every new post delivered to your Inbox.

Join 119 other followers

%d bloggers like this: