MSDeploy の "runCommand" プロバイダーを使用してリモート コンピューターで .cmd ファイルを実行しようとすると、エラーが発生します。予想される実行時間は約 10 秒ですが、MSDeploy は約 2 ~ 3 秒しか実行せず、その後エラーの詳細が返されます。
これは、私が使用している完全な MSDeploy "runCommand" コマンド ライン テキストです。
msdeploy.exe -verb:sync -source:runCommand="D:\web deploy tester\test_cmd.cmd",dontUseCommandExe=false,waitAttempts=5,waitInterval=1000 -dest:auto,computername=http://test-machine:89/MsDeployAgentService/,userName=aaa,password=bbb
返されるエラーの詳細は次のとおりです。
Error 'Error: (4/21/2010 12:19:25 PM) An error occurred when the request was processed on the remote computer.
Error: The process 'C:\WINDOWS\system32\cmd.exe' (command line '/c "D:\web deploy tester\test_cmd.cmd"') was terminated because it exceeded the wait time.
Error count: 1.
' occurred in call to RunCommand
なぜこれが起こっているのか、どのように解決するのかについてのアイデアはありますか?