ASP. NET MVC4 Web site deployed in Alibaba Cloud Server (WIndows server 2012+IIS8 environment)

Source: Internet
Author: User

First, explain the environment configuration of the server

The system is Windows Server2012 (when configured to choose the Almighty Environment), the server is IIS8

Thanks to the VS2012, the system is automatically loaded with. Net Framework4.5,mvc4 and so on.

Database as SqlServer2005, directly on the server Mounted database system

If you can't load these software on the server and don't know what's going on, vs2012

Go to Ali after the sale to submit a developmet alone, describe the problem, he would say that this is a third-party software problem, will give you a special deal with these issues of the third-party company

And then give you a vouchers volume, the amount is exactly the cost of the company to process your server (that is, free to help you repair, install the software)

Third-party companies may log in remotely to your server when processing, so you will also need to provide the login system account password

The above account is complete



Open vs2012 on the server first, open the project you want to publish

On the project name, right-click Regenerate (Note: Not right-click on the solution, nor what logical layer and data layer are on these class library items right-click on the MVC main project)


When you click Post, a post-wizard-like thing appears

The first step is to configure the file

Click the dropdown box, new, name the profile (this is not the same as the Webconfig configuration file in the project)


Click Next,

Publish method Select the file system so that it can be published locally (that is, the server computer)

Target location Select a custom path

If there is a domain name, the destination URL to fill in.


Click Next

Configuration select release, which maximizes the performance of the system

Debug is debug mode, attaching a lot of debugging information, is for the convenience of the programmer debugging


Click Next, click Publish


In this way, the MVC project is published to a local path.

Here is the post-release project


And then there's no more vs thing.

Open Control Panel, administrative Tools->iis Manager

Add a Web site right-click on the site

Enter the custom site name

Application pool Select the default one

Click OK


Physical path Select the path that was just released with VS

IP address Enter the server's public network IP

No matter after, click OK


After that you can see the site directory is more than a bookshop site

Click on the content view below to see the published items


In this way, the MVC4 project is deployed to IIS8, open the browser to access the public IP address (as long as the internet can be accessed by the computer)


If there is a situation where the site profile cannot be read, there may be insufficient access to the site's published path

Find the site publishing path, right-click the site home directory, properties


Locate the Security tab and click Edit in the group or user name

Add User Everyone

Click OK



Add modified permissions to this everyone user

Are you sure


This will allow you to access the site's path normally.

ASP. NET MVC4 Web site deployed in Alibaba Cloud Server (WIndows server 2012+IIS8 environment)

Related Article

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.