2010-04-08 47 views
0

嘗試在Sharepoint中創建變體時出現一些瘋狂的錯誤。有沒有人看到這個錯誤?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() 

在此先感謝。

回答

0

有趣。

'C:\Windows\TEMP\11c7c12e-030d-4860-a942-f5ab71f0930d\ExportSettings.xml' is denied. 
  • 請確認用戶是 記錄在SharePoint訪問 該文件(particularry該臨時 文件夾)
  • 如果代碼運行的計時器作業, 驗證用戶是正在運行 計時器服務具有這些權限。
  • 也許你只需要在應用程序池 帳戶的上下文中運行代碼 ?使用 SPSecurity.RunWithElevatedPrivileges 然後(和驗證應用程序池 帳戶可以訪問該文件)

或者,也許這就是問題訪問 /ES/Paginas/Destaque1.aspx。要麼 的方式,請驗證用戶的 適當的權限。