Mostrando entradas con la etiqueta SharePoint Server Publishing. Mostrar todas las entradas
Mostrando entradas con la etiqueta SharePoint Server Publishing. Mostrar todas las entradas

jueves, 21 de agosto de 2014

Error al activar la feature “SharePoint Server Publishing”

Al activar la feature “SharePoint Server Publishing”

image

Me lanza el siguiente error: 

Event log message was: 'Failed to initialize some site properties for Web
at Url: 'http://url_siteCollection''. Exception was: 'System.InvalidOperationException: Failed to compare two elements in the array. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.  Parameter name: index   
at System.ThrowHelper.ThrowArgumentOutOfRangeException()   
at System.Collections.Generic.List`1.get_Item(Int32 index)   
at Microsoft.SharePoint.SPFieldMultiColumnValue.get_Item(Int32 index)   
at Microsoft.SharePoint.Publishing.PageLayout.get_AssociatedContentTypeId()   
at Microsoft.SharePoint.Publishing.PageLayout.get_AssociatedContentType()   
at Microsoft.SharePoint.Publishing.PageLayout.get_UIDisplayName()   
at Microsoft.SharePoint.Publishing.PageLayoutComparerByUIDisplayName.Compare(PageLayout x, PageLayout y)   
at System.Collections.Generic.ArraySortHelper`1.SwapIfGreaterWithItems(T[] keys, IComparer`1 comparer, Int32 a, Int32 b)   
at System.Collections.Generic.ArraySortHelper`1.QuickSort(T[] keys, Int32 left, Int32 right, IComparer`1 comparer)   
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)     -
-- End of inner exception stack trace ---   
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)   
at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)   
at System.Array.Sort[T](T[] array, IComparer`1 comparer)   
at Microsoft.SharePoint.Publishing.PublishingWeb.GetAvailablePageLayouts()   
at Microsoft.SharePoint.Publishing.Internal.AreaProvisioner.InitializePublishingWebDefaults()'
 

image

Solución: ejecutar los siguientes comandos.

stsadm -o activatefeature -filename publishing\feature.xml -url http://url_siteCollection -force
stsadm -o activatefeature -filename publishingweb\feature.xml -url http://url_siteCollection -force