Notes 3:vs Publishing a Web site to a server using the Web deploy one click

Source: Internet
Author: User
Tags hosting

My development environment, Win7 64-bit, using VS2013;

Server Environment WinServer08 64-bit.

For more information on what Web deploy is and what it does, see other articles, such as: Web Deploy automatic deployment

This article describes how to configure the server and the local development environment to implement a one-click Publishing site in step by step mode.

As well as the problems and solutions that may be encountered during the process.

Step one: Download and install the Web Platform on the server Installer

Web Platform Installer is recommended to install the Web Deploy,:web Platform Installer

The default installation, the process will not repeat;

Step two: Open Web Platform installer install Web Deploy

In the search area in the upper right corner, enter Web deploy and then enter, and you can see the following:

Install Web deploy 3.5 and Web deploy 3.5 for hosting servers,

The installation is done by adding the right side of the point, and then installing at the bottom, waiting for the installation to complete.

Step three: Create a new Web site on the server's IIS and modify the default. NET Framework version

Open Start-Administrative Tools-Internet Information Services (IIS) Manager to open the Add Web site;

Enter the site name, directory and other information, and then determine;

The default Web site. NET Framework version is 2.0, in IIS Manager, in application pools, select the Web site that you just created, and change the. NET Framework to version 4.0:

Step four: Enable Web Deploy publishing for the site

Select the new Web site, right-deploy-enable Web Deploy publishing:

(If you do not see the option "Enable Web Deploy publishing", check if "Web deploy 3.5 for hosting server" is installed)

Note here two points, one is the first red box, try to use the Administrator account (to avoid the issue of permissions), and the second red box URL, replace the server named IP address, so as not to recognize;

Click on the settings, there is one more file on the desktop: cy20_administrator_cyhrms. publishsettings, copy this file to our development environment.

Step Five: Install the Web Deploy in the development environment

Same Step Two

Step Six: Publish the Web site to the server

Open the project, right-click Publish, in the Profile window, select "Import":

Select the cy20_administrator_cyhrms copied from the server. Publishsettings file;

Then "Verify the Connection" In the connection window, and if there are no errors, you can publish it directly:

In the future development, can publish the website to the server at any time, do not need to configure again, is not very convenient that:-)

This article describes the process of deploying Web site-to-server through the Web deploy one-click in VS, and then talking about the problems you might encounter:

(1) ERROR COULD not CONNECT to remotesvc 404

This MS official has given the solution steps:

1. Check if you can ping the server

2. Check if server Web Management service is started

3, check the server firewall, inbound rules, there is no default 8172 port allowed

(2) ERROR COULD not CONNECT to REMOTESVC 550

Note that the difference between the one and the problem is that the error number is 404, and one is 550.

550 Message The general reason is that the site name and the server do not match, pay attention to check case and space

Reference: International Friends ' answers

(3) Error_destination_not_reachable 404

Note that the difference between this and the problem is that you cannot connect to the target, not the server.

This problem may be caused by inconsistencies in the Web deploy and server versions of the development environment,

Check the version of Msdeploy.exe under the "C:\Program files\iis\microsoft Web Deploy V3" directory on the development environment and on the server.

The development environment and server versions must be fully consistent for the connection to succeed

Reference: The answer of another international friend

Above, please correct me:-)

Notes 3:vs Publishing a Web site to a server using the Web deploy one click

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.