Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Error creating sub sites

  Asked By: Charmaine Galloway         Date: Jul 16, 2006      Category: Sharepoint      Views: 217
 

I have the following code which was creating subsites successfully until we did some things over the weekend:

SPSite siteCollection = new SPSite(collection);

SPWeb site = siteCollection.AllWebs[""];

SPWebCollection subSites = site.Webs;

SPWeb newWeb = subSites.Add(url, title, description, 1033, template, false, false);

That code was successfully creating subsites. However, over the weekend we did a migration which involved moving SharePoint portal sites from one server to another server. Now we are receiving the following error when the call to subSites.Add is made:

Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))::Microsoft.SharePoint

Before that we were getting an error where it said that it could not connect to the configuration database. We modified the application pool for the web service that is calling this code to use the Network service account. Everything else on the sites seems to work, including our custom webpart and all the content is there as well. Any ideas what this means or where I can look to see for more information?


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 Error creating sub sites Or get search suggestion and latest updates.


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