Built asp net application in visual studio how move it to iis express


ASP.NET is a popular programming language used for building web applications. It provides a framework for developing websites and web services. In this article, we will discuss how to move an ASP.NET application in Visual Studio to IIS Express.

What is IIS Express?

IIS Express is a lightweight, self- version of Internet Information Services (IIS) that is optimized for developers. It allows you to run and test your ASP.NET applications locally without the need for a full-fledged IIS installation.

Step 1: Publish the ASP.NET Application

The first step is to publish your ASP.NET application from Visual Studio. This creates a deployment package that can be easily transferred to IIS Express.

// ASP.NET code to publish the application

Step 2: Install IIS Express

If you haven't already, you need to install IIS Express on your machine. You can it from the official and follow the installation instructions.

Step 3: Configure IIS Express

Once IIS Express is installed, you need to configure it to host your ASP.NET application. Open the IIS Express configuration file (applicationhost.config) located in the IIS Express installation directory.

// ASP.NET code to configure IIS Express

Step 4: Copy the Published Files

Next, copy the published files from the output directory of your ASP.NET application to the appropriate directory in the IIS Express installation. By default, the directory is “C: FilesIIS Express{YourSiteName}”.

// ASP.NET code to copy the published files

Step 5: Run the Application in IIS Express

Finally, you can run your ASP.NET application in IIS Express. Open a command and navigate to the IIS Express installation directory. Use the following command to start IIS Express:

// ASP.NET code to run the application in IIS Express

Once IIS Express is running, you can access your ASP.NET application by opening a web browser and navigating to “http://localhost:{PortNumber}”.


Moving an ASP.NET application from Visual Studio to IIS Express is a straightforward process. By following the steps outlined in this article, you can easily test and run your application locally before it to a production environment.

Rate this post

Leave a Reply

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

Table of Contents