SharePoint Error : System.ArgumentException. Value does not fall within the expected range
2009-01-20 11:39
826 查看
之前做SharePoint的时候遇到这个错误 .....
System.ArgumentException. Value does not fall within the expected range.
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.GetFileOrFolderObject(String strUrl)
at Microsoft.SharePoint.Publishing.CommonUtilities.GetFileFromUrl(String url, SPWeb web)
最后在blogs.technet.com找到了解决办法
原因就是:
The reason for this problem is that backup/restore does not adjust the references from the publishing page objects in the Pages library to their Page Layouts. These URLs are sometimes stored as absolute URLs including the server name. And this server name is the server name of the old server farm which cannot be resolved on the new farm.
解决办法 :
In case that you have run into the above problem you have two options:
Throw away the database and transfer it correctly using STSADM -o export/import or content deployment
Fix the incorrect links manually using the following steps
Open the web in SharePoint Designer
On the “task panes” window, pick hyperlinks.
For the “hyperlink” heading, click the arrow and pick (custom…)
In the dialog, ask to show rows where the hyperlink begins with a URLs which are not valid on the current server farm
For each of the files, right click and say “Edit hyperlink…” and Replace hyperlink with the hyper link that is valid on the current server farm
他那里有个stsadm扩展可以解决问题, 不过在客户那里我只有写个Console给客户自己运行了
新建一个Console Application
");
Console.Read ();
}
}
}
运行一次搞掂,Thanks to Stefan Goßner !
System.ArgumentException. Value does not fall within the expected range.
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.GetFileOrFolderObject(String strUrl)
at Microsoft.SharePoint.Publishing.CommonUtilities.GetFileFromUrl(String url, SPWeb web)
最后在blogs.technet.com找到了解决办法
原因就是:
The reason for this problem is that backup/restore does not adjust the references from the publishing page objects in the Pages library to their Page Layouts. These URLs are sometimes stored as absolute URLs including the server name. And this server name is the server name of the old server farm which cannot be resolved on the new farm.
解决办法 :
In case that you have run into the above problem you have two options:
Throw away the database and transfer it correctly using STSADM -o export/import or content deployment
Fix the incorrect links manually using the following steps
Open the web in SharePoint Designer
On the “task panes” window, pick hyperlinks.
For the “hyperlink” heading, click the arrow and pick (custom…)
In the dialog, ask to show rows where the hyperlink begins with a URLs which are not valid on the current server farm
For each of the files, right click and say “Edit hyperlink…” and Replace hyperlink with the hyper link that is valid on the current server farm
他那里有个stsadm扩展可以解决问题, 不过在客户那里我只有写个Console给客户自己运行了
新建一个Console Application
");
Console.Read ();
}
}
}
运行一次搞掂,Thanks to Stefan Goßner !
相关文章推荐
- SharePoint Error : System.ArgumentException. Value does not fall within the expected range
- 总结:SharePoint 2010 -- Error and Solution(1)-- SharePoint Designer – Value does not fall within the expected range
- SharePoint designer 2010编辑List的表单时出现错误:soap:Server was unable to process request. ---> Value does not fall within the expected range
- SharePoint Designer 报错“ Value does not fall within the expected range”
- Silverlight Combo box exception: Value does not fall within the expected range
- Value does not fall within the expected range exception while using ReportDataSource
- Value does not fall within the expected range in excel word addin HResult 2147024809
- SharePoint 2010 Value does not fall within the expected range
- Value does not fall within the expected range in excel word addin HResult 2147024809
- winform "Value does not fall within the expected range"错误
- [windows phone 8] Value does not fall within the expected range.这个错误有可能是xaml树中有重名的控件
- Silverlight ComboBox Bug - Value does not fall within the expected range
- "Value does not fall within the expected range" with managed metadata fields
- Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for …
- Common problem with SharePoint 2010: System.Security.Cryptography.CryptographicException - Keyset does not exist(转)
- SharePoint Error: 'Recycle IIS Application Pool': Win32: The system cannot find the path specified'
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- 发布Layouts页面的时候报错:System.ArgumentException: Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page
- fix errors 1088: “Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied” and 1334: “Exception: System.IO.FileLoadException”
- 项目正常单元测试错误 java.lang.IllegalArgumentException: Mapped Statements collection does not contain value