2011-08-31 43 views
2

我试图用TeamCity和WebDeploy自动化部署过程。 Click-One-Publish离开IDE工作正常,但是从我的ANT脚本调用,由于请求无效而失败。通过命令行通过WebDeploy部署失败,由于无效操作

这里我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框架可能被打破,所以我重新安装该框架,但这是不幸的解决方案。

一些细节到服务器环境:

  • 的Microsoft Windows Server 2008
  • IIS7
  • 的.NET Framework V3.5(默认)
  • 的.NET Framework v4.0.30319
  • 通过ActiveDirectory进行身份验证

回答

2

搜索fo我试了一下Windows默认过程,并完全删除了目标网站空间。重新创建Web空间并重新配置设置后,一切正常。我希望这个小小的epsiode帮助其他人。 :-)