2

我正在尝试使用 TeamCity 和 WebDeploy 自动化部署过程。IDE 中的 Click-One-Publish 工作正常,但从我的 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 可能会损坏,因此我重新安装了该框架,但不幸的是,这没有解决方案。

服务器环境的一些细节:

  • 微软视窗服务器 2008
  • IIS7
  • .NET Framework v3.5(默认)
  • .NET 框架 v4.0.30319
  • 通过 ActiveDirectory 进行身份验证
4

1 回答 1

2

搜索了一段时间后,我尝试了 Windows 默认程序并完全删除了目标空间。重新创建网络空间并重新配置设置后一切正常。我希望这个小插曲可以帮助其他人。:-)

于 2011-09-01T07:27:41.990 回答