I have this bit of code...
using (SPSite sitecollection = new SPSite(siteUrl))
{
using (SPWeb web = sitecollection.OpenWeb(webUrl))
{
try
{
web.AllowUnsafeUpdates = true;
ContentDeploymentJob.AddQuickDeployObject(web,
Microsoft.SharePoint.Deployment.SPDeploymentObjectType.ListItem,
itemUrl);
web.Update();
}
finally
{
web.AllowUnsafeUpdates = false;
}
}
}
which should add an item to the content deployment for the specified web. However I get this error...
Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.
yet i've set AllUnsafeUpdates to true. Is it me, am I missing something?