从一个端口网站集备份还原到另一个端口网站集后,不能备份还原后的网站集。
网站集中使用了Feature安装的WebPart,备份到新端口网站集的webpart是可以正常工作,
但通过stsadm.exe -o export ...备份网站时报出:
如下异常:
FatalError: 未能比较数组中的两个元素。
在 System.Collections.Generic.ArraySortHelper`1.QuickSort[TValue](T[] keys, TValue[] values, Int32 left, Int32 right, IComparer`1 comparer)
在 System.Collections.Generic.ArraySortHelper`1.QuickSort[TValue](T[] keys, TValue[] values, Int32 left, Int32 right, IComparer`1 comparer)
在 System.Collections.Generic.ArraySortHelper`1.QuickSort[TValue](T[] keys, TValue[] values, Int32 left, Int32 right, IComparer`1 comparer)
在 System.Collections.Generic.ArraySortHelper`1.Sort[TValue](T[] keys, TValue[] values, Int32 index, Int32 length, IComparer`1 comparer)
在 System.Collections.Generic.ArraySortHelper`1.Sort(T[] items, Int32 index, Int32 length, IComparer`1 comparer)
在 System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
在 System.Collections.Generic.List`1.Sort(Int32 index, Int32 count, IComparer`1 comparer)
在 System.Collections.Generic.List`1.Sort(IComparer`1 comparer)
在 Microsoft.SharePoint.Deployment.WebSerializer.GetDataFromObjectModel(Object obj, SerializationInfo info, StreamingContext context)
在 Microsoft.SharePoint.Deployment.DeploymentSerializationSurrogate.GetObjectData(Object obj, SerializationInfo info, StreamingContext context)
在 Microsoft.SharePoint.Deployment.XmlFormatter.SerializeObject(Object obj, ISerializationSurrogate surrogate, String elementName, Boolean bNeedEnvelope)
在 Microsoft.SharePoint.Deployment.XmlFormatter.Serialize(Stream serializationStream, Object topLevelObject)
在 Microsoft.SharePoint.Deployment.ObjectSerializer.Serialize(DeploymentObject deployObject, Stream serializationStream)
在 Microsoft.SharePoint.Deployment.SPExport.SerializeObjects()
在 Microsoft.SharePoint.Deployment.SPExport.Run()
在 System.Collections.Generic.ArraySortHelper`1.QuickSort[TValue](T[] keys, TValue[] values, Int32 left, Int32 right, IComparer`1 comparer)
在 System.Collections.Generic.ArraySortHelper`1.QuickSort[TValue](T[] keys, TValue[] values, Int32 left, Int32 right, IComparer`1 comparer)
在 System.Collections.Generic.ArraySortHelper`1.Sort[TValue](T[] keys, TValue[] values, Int32 index, Int32 length, IComparer`1 comparer)
在 System.Collections.Generic.ArraySortHelper`1.Sort(T[] items, Int32 index, Int32 length, IComparer`1 comparer)
在 System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
在 System.Collections.Generic.List`1.Sort(Int32 index, Int32 count, IComparer`1 comparer)
在 System.Collections.Generic.List`1.Sort(IComparer`1 comparer)
在 Microsoft.SharePoint.Deployment.WebSerializer.GetDataFromObjectModel(Object obj, SerializationInfo info, StreamingContext context)
在 Microsoft.SharePoint.Deployment.DeploymentSerializationSurrogate.GetObjectData(Object obj, SerializationInfo info, StreamingContext context)
在 Microsoft.SharePoint.Deployment.XmlFormatter.SerializeObject(Object obj, ISerializationSurrogate surrogate, String elementName, Boolean bNeedEnvelope)
在 Microsoft.SharePoint.Deployment.XmlFormatter.Serialize(Stream serializationStream, Object topLevelObject)
在 Microsoft.SharePoint.Deployment.ObjectSerializer.Serialize(DeploymentObject deployObject, Stream serializationStream)
在 Microsoft.SharePoint.Deployment.SPExport.SerializeObjects()
在 Microsoft.SharePoint.Deployment.SPExport.Run()
解决方法:
备份成功。