我試圖用WebDeploy V3部署一個包。 安裝過程是在遠程計算機上的源文件夾與目標文件夾之間進行同步,並在同步完成後運行某個powershell腳本。 正在執行的命令是:WebDeploy runcommand問題
'"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:dirPath='C:\source' -dest:dirPath='D:\destination',computerName=XXX -postSync:runcommand='powershell -inputformat none D:\destination\Install.ps1',successReturnCodes=0'
我們得到以下錯誤:
Info: Using ID '49edd786-d8a0-4acf-be7b-95dd6e1391cc' for connections to the remote server. Performing '-postSync'... Info:
Using ID '5ef9d005-82fa-4811-9f51-1741c8d622de' for connections to the remote server.
Info: Adding MSDeploy.runCommand (MSDeploy.runCommand).
Error: (11/28/2012 4:34:24 AM) An error occurred when the request was processed on the remote computer. Error: The entry type 'Unknown' was not expected at this time. The serialization stream may be corrupted.
Error count: 1.
Error during '-postSync'. Total changes: 0 (0 added, 0 deleted, 0 updated, 0 parameters changed, 0 bytes copied)
搜索網這個錯誤,我沒有看到使用runcommand提供商時,誰遇到過它任何人。如果有人遇到類似的問題,並有想法或建議,我會非常感激..