SharePoint - Claims-based web applications require anonymous authentication in IIS

Symptoms

Consider the following scenario:
  • You have a SharePoint 2010 environment. 
  • Users are unable to delete documents from document libraries
  • The following JavaScript error message may be displayed:
    • Webpage error details
    • User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
    • Timestamp: Tue, 29 Nov 2011 08:12:39 UTC
    • Message: Object expected
    • Line: 2
    • Char: 20819
    • Code: 0
    • URI: https://servername/_layouts/inplview.js?rev=w9UpCnra33es9DA%2BqW%2B%2B8A%3D%3D

Cause

The behavior occurs if anonymous authentication is disabled in IIS for the Claims-based web application. The WCF runtime requires anonymous authentication for claims-based web applications. 

Resolution

To enable anonymous authentication for the Claims-based web application: 
  1. Verify that you a member of the Administrators group on the server on which you are configuring IIS.
  2. Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager to start IIS Manager console.
  3. Expand Sites in the console tree, and then click the IIS web site that corresponds to the web application zone on which you want to configure.
  4. In Features View, in IIS, double-click Authentication.
  5. Right-click Anonymous Authentication, and then click Edit.
  6. Verify the Anonymous user identity is set to IUSR, the default for SharePoint
  7. Right-click Anonymous Authentication, and then click Enable.

More Information

WCF Services in SharePoint Foundation 2010 - http://msdn.microsoft.com/en-us/library/ff521586.aspx


Properties

Article ID: 2850515 - Last Review: Jun 27, 2013 - Revision: 1

Microsoft SharePoint Server 2010

Feedback