Sharepoint Variations错误

时间:2010-04-08 11:21:03

标签: sharepoint exception variations

尝试在Sharepoint中创建变体时,我遇到了一些疯狂的错误。有人看到过这个错误吗?

PublishingPage::AttemptPairUpWithPage() Ends. this: http://wseasp05/PT/Paginas/Destaque1.aspx, destPageUrl: /ES/Paginas/Destaque1.aspx   
Begin DeploymentWrapper::SynchronizePeerPages(), sourcePage = Paginas/Destaque1.aspx     
DeploymentWrapper::SynchronizePeerPages(), synchronizeDestUrl = /ES/Paginas/Destaque1.aspx
Access to the path 'C:\Windows\TEMP\11c7c12e-030d-4860-a942-f5ab71f0930d\ExportSettings.xml' is denied.     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)     at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)     at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)     at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)     at System.IO.FileInfo.Create()     at Microsoft.SharePoint.Deployment.Ex...  
...portDataFileManager.Initialize()     at Microsoft.SharePoint.Deployment.SPExport.InitializeExport()     at Microsoft.SharePoint.Deployment.SPExport.Run()     
Export Completed.    
DeploymentWrapper.SynchronizePeerPages() catches UnauthorizedAccessException.  Spawn failed for /ES/Paginas/Destaque1.aspx   
End of DeploymentWrapper.SynchronizePeerPages()

提前致谢。

1 个答案:

答案 0 :(得分:0)

有趣。

'C:\Windows\TEMP\11c7c12e-030d-4860-a942-f5ab71f0930d\ExportSettings.xml' is denied.
  • 请确认用户是 登录的SharePoint有权访问 那个文件(特别是那个临时文件 文件夹)
  • 如果代码作为计时器作业运行, 验证正在运行的用户 计时器服务具有这些权限。
  • 也许你只需要运行代码 在应用程序池的上下文中 帐户?使用 SPSecurity.RunWithElevatedPrivileges 然后(并验证该申请 池帐户可以访问该文件)

或者可能是访问问题    /ES/Paginas/Destaque1.aspx。或    方式,验证用户有    适当的权限。