TeamCity と WebDeploy を使用してデプロイ プロセスを自動化しようとしています。IDE からの Click-One-Publish は正常に動作しますが、ANT スクリプトから呼び出すと、無効な要求が原因で失敗します。
ここに私のANT:
<?xml version="1.0" encoding="WINDOWS-1250"?>
<project default="build" basedir="." name="WebDeploy">
<target name="build" description="Baut und Published die Anwendung!">
<exec failonerror="true" executable="${MSBuild}MSBuild.exe">
<arg line=" /t:Rebuild /p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=True /p:MSDeployPublishMethod=WMSvc /p:Configuration=${configuration} /p:username=${user} /p:password=${password} /p:AllowUntrustedCertificate=True /p:MsDeployServiceUrl=${host} ${sln}"/>
</exec>
</target>
</project>
ここにエラー(翻訳できる限り):
error: Web deployment task failed.((30.08.2011 09:45:12) An error occurred when the request was processed on the remote computer.)
error: It was tried to execute an invalid operation for the file '4_0_30319'
私の最初の提案は、.NET Framework が壊れている可能性があるというものだったので、フレームワークを再インストールしましたが、残念ながらこれは解決策ではありませんでした。
サーバー環境の詳細:
- Microsoft Windows Server 2008
- IIS7
- .NET Framework v3.5 (デフォルト)
- .NET フレームワーク v4.0.30319
- ActiveDirectory による認証