WebDeployV3でパッケージを展開しようとしています。インストールプロセスでは、ソースフォルダーをリモートコンピューター上の宛先フォルダーに同期し、同期が完了した後に特定のPowerShellスクリプトを実行します。実行されるコマンドは次のとおりです。
'"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プロバイダーを使用しているときにこのエラーに遭遇した人は誰もいませんでした。誰かが同様の問題に遭遇し、アイデアや提案があれば、私は最も感謝します。