Anup Ghume's Blog

Wednesday, 9 December 2015

CSOM for anonymous site.

Error: The Method “GetItems” of the type “List” with id “{Lists’s Guid}” is blocked by the administrator on the server

While using SharePoint Client Object Model when I got the error above.

To resolve perfom below powershell script:

$web = Get-SPWebApplication -Identity 'http://your web address'
$web.ClientCallableSettings.AnonymousRestrictedTypes.Remove( [Microsoft.SharePoint.SPList],"GetItems")
$web.Update()

Foe more refer link





Posted by Unknown at 04:31
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ►  2016 (12)
    • ►  November (1)
    • ►  August (4)
    • ►  July (3)
    • ►  June (2)
    • ►  April (1)
    • ►  February (1)
  • ▼  2015 (35)
    • ▼  December (7)
      • Import cmp
      • Pagination, Sorting and Filtering in SPGridView
      • Create Master Page in SharePoint 2013 using ShareP...
      • CSOM for anonymous site.
      • Work REST API for Anonymous Sites.
      • sharepoint webconfig how to show full error descri...
      • A solution with the same name or id already exists...
    • ►  November (2)
    • ►  October (3)
    • ►  September (4)
    • ►  August (6)
    • ►  July (5)
    • ►  April (1)
    • ►  March (7)
  • ►  2014 (7)
    • ►  September (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (2)
    • ►  April (2)
Simple theme. Powered by Blogger.