Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Updates are currently disallowed. To allow updates on a GET, set 'AllowUnsafeUpdates" property

  Asked By: Srikant    Date: Feb 18    Category: Sharepoint    Views: 3450

Iam creating site programmatically

iam getting the following error

Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.

pls slove this error.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Damon Garner     Answered On: Feb 18

Well you can have the below coding and try,
web.AllowUnsafeUpdates =

true;
This will enable the unsafe the updates. Once done with the update you can set  it to false again.

 
Answer #2    Answered By: Laura Walker     Answered On: Feb 18

You must use the web service or perform the creation in a POST operation.

Using AllowUnsafeUpdates will not work for creating  sites.