MOSS Forum

 
Home » Forum » MOSS       Ask a questionRSS Feeds

Creating Site thru ASP Web Service for MOSS 2007

  Asked By: Nichole Cole         Date: Jan 10, 2006      Category: MOSS      Views: 213
 

Has anyone been succesfull using the following code (Sharepoint OM) to
create new site in MOSS 2007 ? I've not overcome the credential problem
no matter what i used, i.e, impersonation (thru web.config), new
CredentialCache, or running the Web Service using a special App Pool
with Admin rights.

SPSite Site = new SPSite(SPSitePath);
SPWeb mySite = Site.OpenWeb();
SPWebCollection subSites = mySite.Webs;
string currentTemplate = mySite.WebTemplate;

subSites.Add(siteUrl, siteTitle, siteDescription, 1033,
currentTemplate, true, false);

The code works fine, when it is execute inside VS 2005. But not thru
IIs, ie, stand alone.


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:                  

 

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

 
Didn't find what you were looking for? Find more on Creating Site thru ASP Web Service for MOSS 2007 Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].