简体   繁体   English

网站部署失败

[英]Web site fails to deploy

I have created a new ASP.NET5 web site, using VS2015 CE, and I can't get it to deploy to an IIS7.5 server. 我使用VS2015 CE创建了一个新的ASP.NET5网站,但无法将其部署到IIS7.5服务器。

I can deploy older projects to this server. 我可以将较旧的项目部署到此服务器。

When I use the Publish Web wizard, the Connection tab is correctly configured (Validate Connection shows success). 当我使用“发布Web”向导时,“连接”选项卡已正确配置(“验证连接”显示成功)。 Pressing "Start Preview" on the Preview Tab shows the correct list of files to be sent to the server. 在“预览”选项卡上按“开始预览”将显示要发送到服务器的正确文件列表。

This suggests to me that VS can communicate successfully with WebDeploy on the server. 这对我来说意味着VS可以与服务器上的WebDeploy成功通信。

When I press Publish, I get: 当我按发布时,我得到:

Error Code: ERROR_DESTINATION_NOT_REACHABLE
More Information: Could not connect to the remote computer (blah blah blah)
/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE
Error: Unable to connect to the remote server

I have read https://docs.asp.net/en/latest/publishing/iis-with-msdeploy.html and followed all the instructions. 我已阅读https://docs.asp.net/en/latest/publishing/iis-with-msdeploy.html,并按照所有说明进行操作。

Deploy the package manually using MSDeploy.exe with the -verbose flag to try to get more details about the error. 使用带有-verbose标志的MSDeploy.exe手动部署程序包,以尝试获取有关该错误的更多详细信息。

>"C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package=WebApplication7.zip -dest:manifest=WebApplication7.DestManifest.xml

There is a section at the bottom of the following post with full instructions on deploying a package manually. 以下文章的底部有一个部分,其中包含有关手动部署软件包的完整说明。

The Anatomy of a WebDeploy Package WebDeploy程序包的剖析

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM