Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Error creating sub sites

  Asked By: Charmaine    Date: Jul 16    Category: Sharepoint    Views: 1278

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?



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.