代码之家  ›  专栏  ›  技术社区  ›  Alfero Chingono

SharePoint导入错误-“拒绝访问”

  •  1
  • Alfero Chingono  · 技术社区  · 15 年前

    我正在尝试导入网站集,但收到以下错误:

    [9/22/2009 4:59:43 PM]: Start Time: 9/22/2009 4:59:43 PM.
    [9/22/2009 4:59:43 PM]: Progress: Initializing Import.
    [9/22/2009 5:00:11 PM]: Progress: Starting content import.
    [9/22/2009 5:00:11 PM]: Progress: De-Serializing Objects to Database.
    [9/22/2009 5:00:11 PM]: Debug: Security check failed in OnWebImport
    [9/22/2009 5:00:11 PM]: Progress: Importing Folder /.
    [9/22/2009 5:00:11 PM]: FatalError: Access denied.
       at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
       at Microsoft.SharePoint.Library.SPRequest.GetFileAndFolderProperties(String bstrUrl, String bstrStartUrl, ListDocsFlags ListDocsFlags, Boolean bThrowException, Int32& phrStatus, Object& pvarFiles, Object& pvarDirs, UInt32& pdwNumberOfFiles, UInt32& pdwNumberOfDirs)
       at Microsoft.SharePoint.SPWeb.GetFileOrFolderProperties(String strUrl, ListDocsFlags listDocsFlags, Boolean throwException)
       at Microsoft.SharePoint.SPFolder.PropertiesCore(Boolean throwException)
       at Microsoft.SharePoint.SPFolder.get_Properties()
       at Microsoft.SharePoint.SPFolder.get_UniqueId()
       at Microsoft.SharePoint.Deployment.FolderSerializer.AddFolderToImportMaps(Guid folderId, SPFolder folder, ImportObjectManager objectManager)
       at Microsoft.SharePoint.Deployment.FolderSerializer.GetFolder(SerializationInfoHelper infoHelper, SPWeb parentWeb, ImportObjectManager objectManager)
       at Microsoft.SharePoint.Deployment.FolderSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
       at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObject(Type objectType, Boolean isChildObject)
       at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type objectType, Boolean isChildObject, DeploymentObject envelope)
       at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializationStream)
       at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serializationStream)
       at Microsoft.SharePoint.Deployment.ImportObjectManager.ProcessObject(XmlReader xmlReader)
       at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()
       at Microsoft.SharePoint.Deployment.SPImport.Run()
    [9/22/2009 5:00:12 PM]: Progress: Import Completed.
    [9/22/2009 5:00:12 PM]: Finish Time: 9/22/2009 5:00:12 PM.
    [9/22/2009 5:00:12 PM]: Completed with 0 warnings.
    [9/22/2009 5:00:12 PM]: Completed with 1 errors.
    

    我执行的命令是:

    Stsadm -o import -url http://spssvr:2000/ -filename sps_export.dat
    

    环境: 操作系统: Windows服务器2008 SharePoint: 苔藓2007 SharePoint版本: 1.0.0.64 用户帐户: 管理员 权限: 管理员、网站所有者

    导出是由来自不同环境的管理员完成的。日志显示导出已成功完成。 我看到了关闭UAC会有帮助,但这并没有解决我的问题。你知道我遗漏了什么吗?

    2 回复  |  直到 15 年前
        1
  •  1
  •   Nat    15 年前
        2
  •  0
  •   Alfero Chingono    15 年前

    我想我会回答我自己的问题。不确定问题的确切位置,但使用 本地服务器 而不是服务器名“spssvr”有效!必须与环境的配置方式有关。