Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

I installed a fresh AMI for EC2 and have installed Web deploy 2.1 on it.

The web deploy 2.1 services is running for real as

netstat -an

Shows 8172 is being listened on by the Web Deployment Agent Service.

But, when I try to deploy to this site using Project->right-click->Publish (via web deploy) I receive the following error message

------ Build started: Project: Cir.Web, Configuration: Debug Any CPU ------

  Cir.Web -> C:\Projects\CrazyInsaneRobot\Source\Cir.Web\bin\Cir.Web.dll

------ Publish started: Project: Cir.Web, Configuration: Debug Any CPU ------

Transformed Web.config using Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config.

Auto ConnectionString Transformed Views\Web.config into obj\Debug\CSAutoParameterize\transformed\Views\Web.config.

Auto ConnectionString Transformed obj\Debug\TransformWebConfig\transformed\Web.config into obj\Debug\CSAutoParameterize\transformed\Web.config.

Copying all files to temporary location below for package/publish:

obj\Debug\Package\PackageTmp.

Start Web Deploy Publish the Application/package to https://ec2-175-41-170-198.ap-southeast-1.compute.amazonaws.com:8172/msdeploy.axd?site=Default%20Web%20Site ...

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Warning : Retrying the sync because a socket error (10054) occurred.  

Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 1 of 10.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Warning : Retrying the sync because a socket error (10054) occurred.  

Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 2 of 

...

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Warning : Retrying the sync because a socket error (10054) occurred.  

Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 10 of 10.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Error: Web deployment task failed. (Could not complete the request to remote agent URL 'https://ec2-175-41-170-198.ap-southeast-1.compute.amazonaws.com:8172/msdeploy.axd?site=Default Web Site'.)

This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server.

Error details:

Could not complete the request to remote agent URL 'https://ec2-175-41-170-198.ap-southeast-1.compute.amazonaws.com:8172/msdeploy.axd?site=Default Web Site'.

The underlying connection was closed: An unexpected error occurred on a send.

Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

An existing connection was forcibly closed by the remote host

Publish failed to deploy.

========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

which are the recommended settings?

Other notes/thoughts:

  • My Web Deploy Error log in the windows error log is completely empty

  • I've used web deploy before using a different AMI in the past and succeeded without problems.

If anyone has any suggestions about how to debug this, I would be so ever grateful!

1 Answer

0 votes
by (44.4k points)

Do this and check whether it solves the issue:

  1. Start a PowerShell prompt elevated
  2. Run set-executionpolicy unrestricted –force
  3. Run .\00_Certificate.ps1
  4. Net stop wmsvc
  5. Net start wmsvc

The certificate link - https://www.dropbox.com/s/9de96l9dyyrfvdg/00_Certificate.zip?dl=0

Related questions

0 votes
1 answer
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...