Create Sharepoint Subsite on Portal 2003 Server
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Create Sharepoint Subsite on Portal 2003 Server

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
ED_C#
Guest





Posted: Tue May 31, 2005 10:27 pm    Post subject: Create Sharepoint Subsite on Portal 2003 Server Reply with quote

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);
Back to top
obeOnline
Guest





Posted: Thu Jun 23, 2005 4:54 pm    Post subject: Re: Create Sharepoint Subsite on Portal 2003 Server Reply with quote

I had the same problem. Did you find a solution?
Back to top
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 Reply with quote

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);
Back to top
View user's profile Send private message Send e-mail
hammer72



Joined: 01 Feb 2006
Posts: 2

Posted: Thu Feb 02, 2006 3:19 pm    Post subject: Reply with quote

got it, I used the WSS-classes instead of the SPS-classes: Area/Areacollection.

cu
hammer
Back to top
View user's profile Send private message Send e-mail
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB