Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Creating Subsite Issue.

  Asked By: Lukas    Date: Feb 02    Category: Sharepoint    Views: 1600

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

Above is the error I get when I tried to create a subsite under a top
level site programatically.
I used the following to do it..

dim objSPSite as new SPSite("http://servername/sites/toplevelsitename")
subSites = objSPSite.AllWebs
newSubSite = subSites.Add(Parameters for the add function as in WSS SDK)

even the allow unsafe property is set to true.
also the object model property is set to true.
also the UnsafeSaveOnGet Property of SharePointPermission Class is set
to true.

Still I get the above mentioned error.
How can I resolve this error.



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Creating Subsite Issue. Or get search suggestion and latest updates.