Hi I've created a site from a site template, when I try to activate SharePoint Server Publishing (under site actions) I get an error. I've already tried re-activating SharePoint Server Publishing Infrastructure (under Site Collection Administration). I had used page layouts previously but no longer using, however in the page layouts library they could still be in existance, I cant access Page Layout library from spd as cant switch publishing on. Could this have anything to do with error?
UPDATE1 In my source site I've deleted any custom page layouts (havent deleted the Pages Library), switched of publishing and exported new template. Then recreated top site in new SC. However the problem persists. I dont have access to the server.
[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
System.ThrowHelper.ThrowArgumentOutOfRangeException() +78
System.Collections.Generic.List`1.get_Item(Int32 index) +53
Microsoft.SharePoint.SPFieldMultiColumnValue.get_Item(Int32 index) +62
Microsoft.SharePoint.Publishing.PageLayout.get_AssociatedContentTypeId() +153
Microsoft.SharePoint.Publishing.PageLayout.get_AssociatedContentType() +75
Microsoft.SharePoint.Publishing.PageLayout.get_UIDisplayName() +239
Microsoft.SharePoint.Publishing.PageLayoutComparerByUIDisplayName.Compare(PageLayout x, PageLayout y) +34
System.Collections.Generic.ArraySortHelper`1.SwapIfGreaterWithItems(T[] keys, IComparer`1 comparer, Int32 a, Int32 b) +153
System.Collections.Generic.ArraySortHelper`1.QuickSort(T[] keys, Int32 left, Int32 right, IComparer`1 comparer) +249
System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer) +216
[InvalidOperationException: Failed to compare two elements in the array.]
System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer) +10157783
System.Array.Sort(T[] array, Int32 index, Int32 length, IComparer`1 comparer) +299
System.Array.Sort(T[] array, IComparer`1 comparer) +86
Microsoft.SharePoint.Publishing.PublishingWeb.GetAvailablePageLayouts() +431
Microsoft.SharePoint.Publishing.Internal.AreaProvisioner.InitializePublishingWebDefaults() +1805
[SPException: Provisioning did not succeed. Details: Failed to initialize some site properties for Web at Url: 'http://ift.tt/1rLzZ8T' OriginalException: Failed to compare two elements in the array.]
Microsoft.SharePoint.Publishing.Internal.AreaProvisioner.InitializePublishingWebDefaults() +2444
Microsoft.SharePoint.Publishing.Internal.AreaProvisioner.Provision() +989
Microsoft.SharePoint.Publishing.<>c__DisplayClass4.<FeatureActivated>b__0() +2350
Microsoft.Office.Server.Utilities.CultureUtility.RunWithCultureScope(CodeToRunWithCultureScope code) +231
Microsoft.SharePoint.Publishing.CmsSecurityUtilities.RunWithWebCulture(SPWeb web, CodeToRun webCultureDependentCode) +150
Microsoft.SharePoint.Publishing.PublishingFeatureHandler.FeatureActivated(SPFeatureReceiverProperties receiverProperties) +529
Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce) +26397174
Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce) +26393775
Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly) +28196111
Microsoft.SharePoint.SPFeatureCollection.CheckSameScopeDependency(SPFeatureDefinition featdefDependant, SPFeatureDependency featdep, SPFeatureDefinition featdefDependency, Boolean fActivateHidden, Boolean fUpgrade, Boolean fForce, Boolean fMarkOnly) +28199946
Microsoft.SharePoint.SPFeatureCollection.CheckFeatureDependency(SPFeatureDefinition featdefDependant, SPFeatureDependency featdep, Boolean fActivateHidden, Boolean fUpgrade, Boolean fForce, Boolean fMarkOnly, FailureReason& errType) +416
Microsoft.SharePoint.SPFeatureCollection.CheckFeatureDependencies(SPFeatureDefinition featdef, Boolean fActivateHidden, Boolean fUpgrade, Boolean fForce, Boolean fThrowError, Boolean fMarkOnly, List`1& missingFeatures) +28199463
Microsoft.SharePoint.SPFeatureCollection.CheckFeatureDependencies(SPFeatureDefinition featdef, Boolean fActivateHidden, Boolean fUpgrade, Boolean fForce, Boolean fMarkOnly) +66
Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly) +28195945
Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope) +161
Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId, Boolean force, SPFeatureDefinitionScope featdefScope) +91
Microsoft.SharePoint.WebControls.FeatureActivator.ActivateFeature(Guid featid, SPFeatureDefinitionScope featdefScope) +699
Microsoft.SharePoint.WebControls.FeatureActivatorItem.BtnActivateFeature_Click(Object objSender, EventArgs evtargs) +140
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
UPDATE2 I deacivated the site template features and deleted them hoping it would allow me to switch on publishing. After selecting the 'SharePoint Server Publishing' button I get a new error message:
[SPException: Provisioning did not succeed. Details: Failed to create the 'Pages' library. OriginalException: Content type '0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39' not found in web 'http://ift.tt/1zKSeKf'.]
Then I reactivated the site template solution but new error message persists. In my original site collection I have 2 other subsites. Because I havent added these yet could this be cause of problem?
0 commentaires:
Enregistrer un commentaire