ASP. NET MVC 5 in no extranet WIN2008R2 Server deployment method

Source: Internet
Author: User

I did a small application locally with the latest. NET 4.5 and ASP 5 frameworks. Local tests are packaged successfully.
Now to put it on the server, this app is only for intranet use. The server is not allowed to connect to the extranet. See Www.asp.net without MVC5 's standalone installation package, only 4 and before. are both installed online and http://www.nuget.org/packages/Microsoft.AspNet.Mvc/the way it is said here. All need to be connected to the network installation.

Search a lot of places do not provide offline installation package.


The default should be copy Local if you add references through NuGet when developing, and you can see if there are any System.Web.Mvc.dll files under the post-compilation bin. Microsoft is recommending the use of NuGet to add references, the installation package is mainly for the development environment to install tools. If you do not have copy local, you can set the referenced property to make it compile with Copy Local.




Locate the following files on the machine where ASP. NET MVC is installed (the 32 system is C:\Program Files\Microsoft ASP. NET directory), copy them to the bin directory of the deployment machine and it's OK!

System.Web.Helpers.dll
System.Web.Razor.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll
System.Web.WebPages.Deployment.dll
Microsoft.Web.Infrastructure.dll



All you need to do is add the ASP. NET MVC assembly to your project with NuGet, and when you publish to the server, the server doesn't have any connection to the network, so you don't even have the Internet bar in your development machine? And the assembly only needs to be installed once, it's okay to never be connected to the net

Ref

http://bbs.csdn.net/topics/390941754/

ASP. NET MVC 5 in no extranet WIN2008R2 Server deployment method

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.