Nishand's Blog

Welcome to my personal blog, All the information in this bogs is my ideas,findings and thoughts on .Net, Asp.Net and SharePoint.
ALL POSTING ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND

Updates are currently disallowed on GET requests. while creating a WSS site

This exception occurs when your try to create a WSS site from an Asp.Net application. Please make sure that the site creation code should NOT execute when Page.IsPostBack equal false. and please insert the below code snippets in the page load event. Sometimes you may required to impersonate the user.

Inserted the below code snippet in Page load event.

SPGlobalAdmin globalAdmin = new SPGlobalAdmin();
Context.Items[SPGlobalAdmin.RequestFromAdminPort] = true;
Page.RegisterHiddenField("__REQUESTDIGEST", globalAdmin.AdminFormDigest);

 

 

 

 

Published Monday, August 07, 2006 3:00 PM by nishandv

Comments

No Comments
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker