: How to deploy ASP.Net MVC 5 to IIS 8 running Windows Server 2012 I have developed serveral MVC 3, 4, 5 applications and have formerly deployed them via Visual Studio to a hosting provider.
I have developed serveral MVC 3, 4, 5 applications and have formerly deployed them via Visual Studio to a hosting provider. Never had a problem with that, everything have always worked. Now I have to deploy a MVC 5 application to a server in the company. I do the same thing as Always in Visual Studio, which means setting up a publishing profile, and then click Publish. The files are copied, and everything gets to the server, but do I not have to do anything in IIS, like Add Website or something? It doesn't work anyway after the VS publishing.
More posts by @Alves908
1 Comments
Sorted by latest first Latest Oldest Best
If you're deploying to the default web site in IIS you can safely publish to the default website's directory and be up and running.
However, if you're deploying an ASP.NET MVC site to a subdirectory of the default site, or to a new directory on the server, you will need to create a new web site, or convert the subdirectory (when publishing under the default site) to an application.
If this is your first time setting up a site on IIS, Microsoft has documentation on the steps to follow in the learn section of ASP.NET.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.