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.
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.