Visual Studio 2010 – Web部署超时 – 该怎么办?

我的MVC2 Web项目使用VS 2010“Web部署”function进行部署。 它过去运行正常,但现在它更经常超时与此错误消息:

Web deployment task failed.((10/11/2010 1:01:59 am) An error occurred when the request was processed on the remote computer.) (10/11/2010 1:01:59 am) An error occurred when the request was processed on the remote computer. The remote host closed the connection. The error code is 0x800704CD. 

搜索错误代码0x800704CD不会返回任何有用的信息。

有没有办法增加超时时间,或者我应该寻找替代方法而忘记Web部署?

忘记错误消息。 错误消息是本地消息。 您对此不感兴趣 – 失败的原因是删除主机关闭了连接。 您想要的是服务器端日志中的服务器端错误消息。 可能是某种超时 – 但服务器端应该有更多的信息。 从IIS日志和事件日志开始。

我没有回答超时问题(在服务器日志中看不到任何问题)。 但我找到了一个解决方法:

  1. 将webdeploy.zip文件物理复制到Web服务器。
  2. 在IIS中选择网站,右键单击并选择“部署 – 导入应用程序…”
  3. 选择#1中复制的zip文件