Mobile app version of vmapp.org
Login or Join
Alves908

: 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.

@Alves908

Posted in: #AspNetMvc #Iis8 #SiteDeployment

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves908

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme