Last post Oct 06, 2016 04:20 PM by gib9898_00
Oct 05, 2016 07:30 PM|gib9898_00|LINK
I created a web API in Visual Studio and now I want to deploy it to our remote server. I'm trying to setup a publish profile but it's not able to connect. Here is a screen shot of the settings I'm using and the error I'm getting:
The error box that you see comes after I click Validate Connection and then Failed (click for details).
It says to make sure Web Deploy is installed and that Web Management Service is running, and they both are. I followed the link but it more or less tells me the same thing.
I also opened port 8172 (now disabled) as that apparently is the port for deploying web apps like my API. I tried tacking on :8172 to the end of the computer name but that had no effect.
Knowing the destination URL might help but I assume (since we don’t have a domain for the API) it would be the same as the remote connection string (ec2-54-159-229-158.compute-1.amazonaws.com), and it seems to be an optional field so I left it blank.
Does anything stand out as odd? Any suggestions? Thanks.
Oct 05, 2016 08:42 PM|gib9898_00|LINK
Because I'm trying to deploy onto a virtual machine, ports 8172 had to be opened on BOTH the physical machine and the virtual machine. Once I did this, I started getting this error message:
Any idea what this means?
Oct 06, 2016 05:42 AM|Yohann Lu|LINK
You should configure an Internet Information Services (IIS) web server to support web publishing. Please refer to the detailed tutorial below.
Configuring a Web Server for Web Deploy Publishing (Web Deploy Handler):
You can also deploy the Web site directly on IIS.
Publishing to IIS:
Oct 06, 2016 04:20 PM|gib9898_00|LINK
I fixed the problem.
Because the API site is under Default Web Site, the site name had to be "Default Web Site/RiskAliveAPI".
Thanks for the feedback.