Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

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

  Asked By: Srikant Hebbar         Date: Feb 18, 2006      Category: Sharepoint      Views: 1555
 

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.

Tagged:                      

 

2 Answers Found

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

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, 2006       

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

Using AllowUnsafeUpdates will not work for creating  sites.

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].