File not found error when creating blank site collection RRS feed

  • Question

  • Hi

    When I try and create a blank site collection I get the following error.

    File Not Found.   at Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
       at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
       at Microsoft.SharePoint.SPWeb.GetMetadataForUrl(String relUrl, Int32 mondoProcHint, Guid& listId, Int32& itemId, Int32& typeOfObject, Object& fileOrFolder)
       at Microsoft.SharePoint.SPWeb.GetList(String strUrl)
       at Microsoft.SharePoint.SPContentTypeBindingElement.EnsureContentTypeExists(SPWeb web)
       at Microsoft.SharePoint.SPContentTypeBindingElement.ElementActivated(SPFeaturePropertyCollection props, SPSqlCommand sqlcmdAppendOnly, SPWebApplication webApp, SPSite site, SPWeb web, Boolean fForce)
       at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionContentTypeAndEventReceiverBindings(SPFeaturePropertyCollection props, SPSite site, SPWeb web, Boolean fForce)
       at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)
       at Microsoft.SharePoint.SPFeature.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)
       at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)
       at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly)
       at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId, SPFeaturePropertyCollection properties, Boolean fForce)
       at Microsoft.SharePoint.SPTemplateAssociationElement.EnsureTemplateAssociatedWebFeaturesActivated(SPSite site, SPWeb web, String sTemplateName)
       at Microsoft.SharePoint.SPFeatureManager.<>c__DisplayClass13.<EnsureTemplateAssociatedWebFeaturesActivated>b__12()
       at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
       at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)
       at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, CodeToRunElevated code)
       at Microsoft.SharePoint.SPFeatureManager.EnsureTemplateAssociatedWebFeaturesActivated(Byte[]& userToken, Int32 nZone, Guid siteid, Guid webid, String sTemplateName)
       at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)
       at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)
       at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate)
       at Microsoft.SharePoint.Administration.SPSiteAdministration.ApplyWebTemplate(String strWebTemplate)
       at Microsoft.SharePoint.ApplicationPages.TemplatePickerUtil.ApplyWebTemplateAndRedirect(SPSiteAdministration siteAdministration, String strWebTemplate, String strRedirect, Boolean bCreateDefaultGroups, Page page)
       at Microsoft.SharePoint.ApplicationPages.CreateSitePage.BtnCreateSite_Click(Object sender, EventArgs e)
       at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     I can create team sites fine but not blank or publishing sites which generate a different error(http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/5e696cc0-576c-4d1f-8171-bc2c0df85631/)

    Our entire Sharepoint implementation has stalled until I can get this fixed so I'm rather desperate. I work for the cash strapped NHS so your assistance will help support a much loved British public institution.

    Many thanks


    Wednesday, January 4, 2012 12:26 PM

All replies

  • Ok, some standard questions to begin with.

    What version of SharePoint are you using?  And have you any customisations or server side changes that have been implemented recently?

    I'd also suggest removing your name from the post, or a clever salesman might find your details on a professional networking site to send you unsolicited email.

    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/
    Wednesday, January 4, 2012 12:49 PM
  • Its MOSS 2007. The only changes I've made are customising existing sites on separate web applications using SP designer. This included creating a new theme and amending spthemes.xml, creating new page layouts and modifying stylesheets. I've deployed a couple of webpart solutions but I have made no changes to the core SP files as I wanted to retain the out-of-the-box integrity to avoid such scenarios. The site collections I am trying to create are on new web applications, although it also fails when attempting to create site collections on existing web applications.


    Wednesday, January 4, 2012 2:03 PM
  • Hi Steven,

    During customization , the site definition files got corrupted that is the reason you are facing the issue. Check the below URL to fix the issue.


    Thank You.

    Sachin Kumar
    Wednesday, January 4, 2012 3:48 PM
  • Hi Sachin

    Thanks for this but this doesn't seem to help, which I assume is because the site collection cannot be created on the web application so there are no pages to repair.


    Wednesday, January 4, 2012 5:14 PM