How to Host ASP.NET Application in IIS

Internet Information Services (IIS) are used to host ASP.Net Web application for either used it to show your development progress or for a test run of your websites. Or if you are a freelancer and you want to show your sites to your customer, IIS might be your best and easiest way.

For beginners like me, I created simple instructions in publishing ASP.NET MVC Application in IIS.


Let’s Start:

I. Go to IIS sites root folder and create new folder.

  1. First open your IIS Manager. By going to start menu and typing “IIS” and select Internet Information Services from the search result. Refer to the image shown below.

    Host ASP.NET Application

    Start Menu

  2. In your IIS manager expand sites folder and right click on Default Web Sites. Then select Explore to open root directory.

    Host ASP.NET Application

    Internet Information Services Manager

  3. wwwroot directory appear create a folder inside the directory. This is where we publish our Websites. In my case I name it as MySites. 

    Host ASP.NET Application

    wwwroot directory

II. Publish ASP.NET Website

My Site Preview:

Host ASP.NET Application

My Site


  1. Open your project in visual studio 2013 and go to solution explorer. Right click on your project name and select publish.

    Host ASP.NET Application


  2. In the Publish Web Window choose Profile and then create new profile name for your publish profile.

    Host ASP.NET Application

    New Profile


  1. Enter your desired publish profile name. Then press “OK”.

    Host ASP.NET Application

    Name your profile

  2. Click “Next” to proceed. Use File System as your publish method.

    Host ASP.NET Application

    Publish Method

  3. Select your published directory. In my case it is C:\inetpub\wwwroot\MySites which the default website directory of IIS. Then click “Open”.

    Host ASP.NET Application

    Select Directory

  4. Lastly click on publish button.

    Host ASP.NET Application

    Publish Option

  5. Wait for Visual Studio to finish publishing.

    Host ASP.NET Application

    Successfully Published

III. Convert your website to IIS Application

  1. Go to your IIS Manager and navigate to Sites-> Default Web Sites. Then search for your folder name where we published our websites. In my case I name it MySites. Right click on MySites folder and select Convert to Application.

    Host ASP.NET Application

    Open IIS Manager

  2. You’re done!! To browse your site right click on MySites Select Manage Application then choose browse.

    Host ASP.NET Application

    IIS Manager

  3. Browser will appear with your site preview.

    Host ASP.NET Application

    My Sites

  4. You can also access your websites using your local IP ex. ASP.NET Application

Thank you for reading!

Hopes this help. Enjoy coding!!

Post you may like:


SOLVED: An unexpected error occurred in the .NET Framework Data Provider for MySQL

If you are here I’m expecting that you encountered same problem as mine. I was transferring a DataSet file to ...
Read More

How to create custom 404 error handler in ASP.NET MVC

Custom 404 error handler - 404 Error refer to a not found resource/URL . Here’s how a default 404 Error ...
Read More

AngularJS CRUD Operation using ASP.NET MVC

I am a .NET Developer and I’m new in AngularJS. I started using AngularJS in about a week ago and ...
Read More
SignalR Chat App With ASP.NET

SignalR Chat Application with ASP.NET MVC

SignalR Chat App With ASP.NET - This article will show you an actual application using SignalR in ASP.NET MVC. The ...
Read More

Submit Forms using AgularJS with ASP.NET MVC

Ways on how to submit forms using AngularJS: I’m new to AngularJS and I was trying to create a CRUD application ...
Read More
Self Signed Certificate

How: Creating Self Signed Certificate

As defined in A self-signed certificate is a certificate that is signed by the person creating it rather than a trusted ...
Read More

AngularJS with Asp.Net MVC

What is Angular? AngularJS is a JavaScript framework that extends HTML attribute to help develop a dynamic Web application. AngularJS ...
Read More

Importing Excel with ASP.NET MVC

Importing excel, In my previous article, I demonstrated how to perform simple way of downloading data into excels. Now, this ...
Read More

Export Data to Excel with ASP.NET MVC

In creating a system there are times that we need to export data to excel, it could either be for ...
Read More

Easy Steps to Implement Partial View in Asp.Net MVC

One of the best ways to implement a dynamic table without loading the whole page is by using Jquery Ajax ...
Read More

Leave a Reply

Your email address will not be published. Required fields are marked *