IIS deployment for ASP. Vnext

Source: Internet
Author: User

Microsoft launched the previous period of ASP. NET Vnext, has also tried one, also wrote a few about the vnext features of the blog, as follows.

But there's always been a problem with how ASP. NET Vnext is deployed in IIS, because the entire directory structure is very different from the previous one, and it's easy to see the results by running the IIS Express directly with F5, but if you deploy to a line, you'll need IIS, and you've never found a suitable solution. Very depressed, finally in the late night to solve the problem, then this article is to explain how to deploy Vnext Web project through vs2015.

The general plan is to pass the http://codedbeard.com/asp-net-5-0-deploy-to-local-iis/

1, first create a new Web project through VS2015

2. Web site project Right-click Properties, modify build and Debug properties

If your operating system is 64-bit, select 64-bit at Target KRE version property at application

Tick "produce outputs on Build" at the Bulid property

The purpose of this check here is to avoid problems during browsing. Couldn‘t find package ‘KRE-CLR-amd64.1.0.0-beta1‘. Locations probed:

Debug target at the Debug property Select Web

2. Publishing site

A) on the Web site project file right-click Properties, Publish Pop-up dialog box as follows

b) Select the file system at connection, specifically, select a folder location output here.

c) Set the output, select the Kre version, because this machine is 64-bit, select the 64-bit CLR here

3, the new site in IIS, Testiisdeploy, select the physical path, here to note that the directory to the deep layer to wwwroot, unlike the previous direct root directory

Here, and then browse the site, you will find that you can, last night when I released again, will prompt the following error

Then choose to execute the site directory under the Web.cmd (D:\Code\Web\publish\GaokaoWeb\web.cmd) file, remember to run as an administrator, run normally will pop up the following box

This way, enter the following address in the browser address bar: http://localhost/

In addition the above need Kre support, Kre installation method is as follows:

First use to install K Gen, install the English language tutorial see this link, or perform the following steps, provided the VS2015 is installed.

(1) Open vs2015, create a new Web project

(2) Run cmd as Administrator, enter the following command to install KVM

Powershell-noprofile-executionpolicy Unrestricted-command "IEX (New-object net.webclient). Downloadstring (' Https://raw.githubusercontent.com/aspnet/Home/master/kvminstall.ps1 '))

(3) Open a new CMD window, enter the following two commands, to update the latest KVM version, after execution restart vs

Set Kre_nuget_api_url=https://www.myget.org/f/aspnetvnext/api/v2

KVM Upgrade

(4) Open the console input KVM list to see the installation results

IIS deployment for ASP. Vnext

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.