ED_C#
Guest
|
Posted:
Tue May 31, 2005 10:27 pm Post subject:
Create Sharepoint Subsite on Portal 2003 Server |
|
|
Any help would be appreciated on this one.
I am having a security problem when creating a subsite on a SharePoint
Portal server. I am able to create a top level site using
the SPSiteCollection methods and that works great but when I try to create a
site under this new top level site using the SPWebCollection add method I
get the following error.
"The security validation for this page is invalid. Click Back in your Web
browser, refresh the page, and try your operation again."
Here is my code: (C#)
SPSite mySite=new SPSite("Http://BTS/sites/Customers");
SPWebCollection webs=mySite.AllWebs;
SPWeb newweb=webs.Add("Alter","Alter","",1033,"STS",false,false); |
|
hammer72
Joined: 01 Feb 2006
Posts: 2
|
Posted:
Wed Feb 01, 2006 2:33 pm Post subject:
Re: Create Sharepoint Subsite on Portal 2003 Server |
|
|
Hi,
its a long time ago, since you posted your message, but did you find a solution? Did you try mySite.AllowUnsafeUpdates = True;?
I have the same problem. I want to create a subsite on SPS (not WSS!).
It nearly works, when SPSite is the root. I can create a site, but this site is not a part of my SPS. That means I can open the site, but the site doesn't appear in my SPS and any SPS function on the site doesn't work. Although I am not albe to remove it.
But when the parentsite is a subsite, SPS asks 3 times for my user credentials (I am the admin) and tells me afterwards, that I am not allowed to do this, cause a specific access-function ist not set. The funny thing is, that this function just exists under WSS, but I am working under SPS and there it doesn't exist.
Anyone got an idea or the same problem?
Thanks in advance
hammer72
| ED_C# wrote: | Any help would be appreciated on this one.
I am having a security problem when creating a subsite on a SharePoint
Portal server. I am able to create a top level site using
the SPSiteCollection methods and that works great but when I try to create a
site under this new top level site using the SPWebCollection add method I
get the following error.
"The security validation for this page is invalid. Click Back in your Web
browser, refresh the page, and try your operation again."
Here is my code: (C#)
SPSite mySite=new SPSite("Http://BTS/sites/Customers");
SPWebCollection webs=mySite.AllWebs;
SPWeb newweb=webs.Add("Alter","Alter","",1033,"STS",false,false); |
|
|