Launch Server Manager
On the dashboard, click Add roles and features; the second option on the image above. It will launch the “Add Roles and Feature wizard” as seen below. Click Next to bring up “Installation type” wizard page as seen in the second screen shot and click next again to bring up “Server selection” wizard page.
On the “Server selection” wizard page, select the server on which to install the roles/and features and then click next.
On the “Server Roles” wizard page, make sure the “Application server roles ” is selected. if you expand “Application server roles” node, you will also have the option to enable port sharing, which is a nice feature to have if you plan on hosting WCF services that will be listening on port 80.
On the same wizard page, also select the “Web server (IIS)” role. expand its descendant nodes and make sure they’re configured similarly as below.
Click next until the install option becomes available and then click install. After installation, launch IIS manager for the Server Manager’s Tools menu options. Right click “Sites” nodes and create a new Web site. Give it a site name and a host name. We will configure the host file under C:/windows/system32/drivers/etc to redirect all request for the provided host name to be redirected to the site being configured. But first we’ll configure the site application pool.
Select your site application pool as seen below. in this instance, the application pool name for the site “voisinage”, defaulted to using the same name as the site.
double click it and make sure the Net framework being used is the latest and the managed pipeline mode is set to “Integrated”.
Lastly, open up the host file and bind your site host name to the local loop.
The only thing left to do now is create your ASP.NET MVC project and updated your IIS site physical path to point to it. Inside your project property windows, bring up the web property page and make sure “Use local IIS web server” is selected.