0

尝试在 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()

提前致谢。

4

1 回答 1

0

有趣的。

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

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

于 2010-04-08T12:32:46.870 回答