Thursday, October 30, 2014

Error: Updates are currently disallowed on GET requests. To allow updates on a GET, set the ‘AllowUnsafeUpdates’ property on SPWeb.


If you are in Central Administration > Manage Web Applications and go to the General settings option,


General settings- central admin


you might run into this error:
“Updates are currently disallowed on GET requests. To allow updates on a GET, set the AllowUnsafeUpdates’ property on SPWeb. 

Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx”

error - allowunsafeupdate


“Updates are currently disallowed on GET requests” under the General Settings. The error stack trace mentioned  ‘EnsureHttpThrottleSettings’ so it means that Central Admin is trying to update these setting on a GET request for new apps that don’t already have them.

Resolution via Powershell 

Launch SharePoint Powershell and and add these lines:

$w = get-spwebapplication http://yourwebapplicationname
$w.HttpThrottleSettings
$w.Update()


The call to the HttpThrottleSettings ensures they exist and Update() saves them.

After completing these commands, you should be able to successfully launch the General Settings dialog window in Central admin.


Contact me

Name

Email *

Message *

Total Pageviews