SharePoint导入错误-';访问被拒绝';

SharePoint导入错误-';访问被拒绝';,sharepoint,import,export,Sharepoint,Import,Export,我正在尝试将数据从另一个环境导入我们刚刚设置的新服务器。最初我遇到了一个问题,但最终我用localhost而不是服务器名解决了这个问题。现在,导入已完成,但跳过了某些项,出现以下错误: [9/28/2009 6:34:30 PM]: Progress: Importing File _catalogs/masterpage/Forms/AllItems.aspx. [9/28/2009 6:34:30 PM]: Error: Current item failed in the export w

我正在尝试将数据从另一个环境导入我们刚刚设置的新服务器。最初我遇到了一个问题,但最终我用localhost而不是服务器名解决了这个问题。现在,导入已完成,但跳过了某些项,出现以下错误:

[9/28/2009 6:34:30 PM]: Progress: Importing File _catalogs/masterpage/Forms/AllItems.aspx.
[9/28/2009 6:34:30 PM]: Error: Current item failed in the export with the error message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
[9/28/2009 6:34:30 PM]: Progress: Importing File _catalogs/masterpage/Forms/DispForm.aspx.
[9/28/2009 6:34:30 PM]: Error: Current item failed in the export with the error message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
[9/28/2009 6:34:30 PM]: Progress: Importing File _catalogs/masterpage/Forms/EditForm.aspx.
[9/28/2009 6:34:30 PM]: Error: Current item failed in the export with the error message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
[9/28/2009 6:34:30 PM]: Progress: Importing File _catalogs/masterpage/Forms/mod-view.aspx.
[9/28/2009 6:34:30 PM]: Error: Current item failed in the export with the error message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
[9/28/2009 6:34:30 PM]: Progress: Importing File _catalogs/masterpage/Forms/my-sub.aspx.
[9/28/2009 6:34:30 PM]: Error: Current item failed in the export with the error message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
[9/28/2009 6:34:30 PM]: Progress: Importing File _catalogs/masterpage/Forms/Publishing Master Page/PublishingMasterTemplate.master.
[9/28/2009 6:34:30 PM]: Error: Current item failed in the export with the error message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
[9/28/2009 6:34:30 PM]: Progress: Importing File _catalogs/masterpage/Forms/Upload.aspx.
[9/28/2009 6:34:30 PM]: Error: Current item failed in the export with the error message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
[9/28/2009 6:34:30 PM]: Progress: Importing File _catalogs/masterpage/Forms/View with Title.aspx.
[9/28/2009 6:34:30 PM]: Error: Current item failed in the export with the error message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
知道会发生什么吗

编辑

在进一步挖掘之后,我在导出日志文件中发现了以下条目:

[9/23/2009 2:07:46 PM]: Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
   at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
   at Microsoft.SharePoint.Deployment.FileSerializer.SaveFile(SerializationInfo info, ExportObjectManager objectManager, ExportDataFileManager fileManager, SPExportSettings settings, SPWeb parentWeb, Boolean isGhosted, String setupPath, String setupPathUser, Byte setupPathVersion, String webRelativeFileUrl, Int32 size, Byte level)
[9/23/2009 2:07:46 PM]: Progress: Exporting File _catalogs/masterpage/Forms/DispForm.aspx.
[9/23/2009 2:07:46 PM]: Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
   at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
   at Microsoft.SharePoint.Deployment.FileSerializer.SaveFile(SerializationInfo info, ExportObjectManager objectManager, ExportDataFileManager fileManager, SPExportSettings settings, SPWeb parentWeb, Boolean isGhosted, String setupPath, String setupPathUser, Byte setupPathVersion, String webRelativeFileUrl, Int32 size, Byte level)
[9/23/2009 2:07:46 PM]: Progress: Exporting File _catalogs/masterpage/Forms/EditForm.aspx.
[9/23/2009 2:07:46 PM]: Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
   at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
   at Microsoft.SharePoint.Deployment.FileSerializer.SaveFile(SerializationInfo info, ExportObjectManager objectManager, ExportDataFileManager fileManager, SPExportSettings settings, SPWeb parentWeb, Boolean isGhosted, String setupPath, String setupPathUser, Byte setupPathVersion, String webRelativeFileUrl, Int32 size, Byte level)
[9/23/2009 2:07:46 PM]: Progress: Exporting File _catalogs/masterpage/Forms/mod-view.aspx.
[9/23/2009 2:07:46 PM]: Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
   at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
   at Microsoft.SharePoint.Deployment.FileSerializer.SaveFile(SerializationInfo info, ExportObjectManager objectManager, ExportDataFileManager fileManager, SPExportSettings settings, SPWeb parentWeb, Boolean isGhosted, String setupPath, String setupPathUser, Byte setupPathVersion, String webRelativeFileUrl, Int32 size, Byte level)
[9/23/2009 2:07:46 PM]: Progress: Exporting File _catalogs/masterpage/Forms/my-sub.aspx.
[9/23/2009 2:07:46 PM]: Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
   at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
   at Microsoft.SharePoint.Deployment.FileSerializer.SaveFile(SerializationInfo info, ExportObjectManager objectManager, ExportDataFileManager fileManager, SPExportSettings settings, SPWeb parentWeb, Boolean isGhosted, String setupPath, String setupPathUser, Byte setupPathVersion, String webRelativeFileUrl, Int32 size, Byte level)
[9/23/2009 2:07:46 PM]: Progress: Exporting File _catalogs/masterpage/Forms/Publishing Master Page/PublishingMasterTemplate.master.
[9/23/2009 2:07:46 PM]: Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
   at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
   at Microsoft.SharePoint.Deployment.FileSerializer.SaveFile(SerializationInfo info, ExportObjectManager objectManager, ExportDataFileManager fileManager, SPExportSettings settings, SPWeb parentWeb, Boolean isGhosted, String setupPath, String setupPathUser, Byte setupPathVersion, String webRelativeFileUrl, Int32 size, Byte level)
[9/23/2009 2:07:46 PM]: Progress: Exporting File _catalogs/masterpage/Forms/Upload.aspx.
[9/23/2009 2:07:46 PM]: Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
   at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
   at Microsoft.SharePoint.Deployment.FileSerializer.SaveFile(SerializationInfo info, ExportObjectManager objectManager, ExportDataFileManager fileManager, SPExportSettings settings, SPWeb parentWeb, Boolean isGhosted, String setupPath, String setupPathUser, Byte setupPathVersion, String webRelativeFileUrl, Int32 size, Byte level)
[9/23/2009 2:07:46 PM]: Progress: Exporting File _catalogs/masterpage/Forms/View with Title.aspx.
[9/23/2009 2:07:46 PM]: Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
   at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
   at Microsoft.SharePoint.Deployment.FileSerializer.SaveFile(SerializationInfo info, ExportObjectManager objectManager, ExportDataFileManager fileManager, SPExportSettings settings, SPWeb parentWeb, Boolean isGhosted, String setupPath, String setupPathUser, Byte setupPathVersion, String webRelativeFileUrl, Int32 size, Byte level)

这些错误显然发生在导出过程中。可能发生了什么?我猜特权不够

所有这些文件都需要比普通文件更高的访问权限,您以什么帐户运行导出?尝试以该帐户的身份登录该站点,看看您是否能够访问该站点


如果这些文件存在权限问题,应该会直接告诉您。

您是否尝试过在原始数据库计算机上只进行content db备份?然后将其还原并连接到新环境正在使用的db服务器?然后将内容数据库添加到新环境中的web应用中…

不,这似乎不是问题所在。那是在我开始使用localhost之前。这似乎是另外一件事,我不是做出口的那个人,我没有进入旧环境。然而,当我要求管理员浏览该url时,他们能够浏览,并且他们也给我发送了一个屏幕截图。有问题的文件已签入并获得批准。感谢Nat,事实证明他们能够浏览该网站,但没有完全控制权。这不是解决办法,但你的建议帮助我们缩小了问题的范围。那么问题的核心是什么?解决办法是什么!?!?我刚刚完成数据库还原,尝试将内容数据库添加到web应用程序时出现“未知错误”。事件日志错误消息:
Unknown SQL Exception 2812。下面包含来自SQL Server的其他错误信息。找不到存储过程“dbo.proc_GetDatabaseInformation”。
谢谢Colin,我终于将数据库连接到了一个新的应用程序。然而,大量的域帐户/权限被保留,我不得不手动删除它们。(这就是我想要出口的原因)