When compiling and running an ASP.NET MVC Core project, a part of the .cs file is blocked by the studio and what would change the code is to "turn off the assembly", change the code, re-compile and run the modified project, spending time.

Is it possible on the fly after changing the .cs file to collect the project and immediately see the updated data in the browser without restarting the entire IIS?

  • If you can use the computer as a web server. Not to be confused with IIS Express, which runs VS. If interested - I will write a detailed answer. - Vadim Prokopchuk
  • @ "Vadim Prokopchuk", yes, please write. I understood the principle. IIS needs to be installed and the project is screwed to it and then the assembly is assembled - Rakzin Roman

1 answer 1

You can, if you use the computer as a local web server. Not to be confused with IIS Express, which opens Visual Studio when a project is launched.

It should be noted that the IIS component is included as part of the Windows installation for both the server and the working machines. Each version of Windows OS offers its own version of IIS: Windows 8 - IIS 8, Windows 7 - IIS 7 / 7.5


To install it, you must perform the following steps:

  1. Open control panel
  2. Open "Programs"
  3. Open "Turn Windows features on or off."
  4. Select Internet Information Services (IIS)
  5. Make sure you choose ASP.NET support.

enter image description here

To do this, expand the Internet Services node -> Application Development Components -> ASP.NET (Internet Information Services -> World Wide Web Services -> Application Development Features -> ASP.NET) If you want to use IIS support in Visual Studio, which allows you to create IIS virtual directories directly in the New Web Site dialog box, you need to select the IIS 6 Management Compatibility item in the Web Management Tools -> IIS 6 Management Compatibility section.

  1. Ok
  2. Make sure that IIS is active: open localhost:80 in the browser. Below is a standard page. enter image description here
  3. Install SQL Server and Allow Connections
  4. Open Visual Studio with administrator rights and create a virtual directory for the application: PCM by project -> Properties -> Web -> In the servers section, select "Local IIS" -> Click "Create virtual directory". The project will be available at the address specified in the URL-адрес проекта column URL-адрес проекта

After writing the code, we assemble the project Ctrl+Shift+B and reload the page in the browser.


For debugging

  1. We start the Visual Studio with the rights of the administrator
  2. We press the button to join (at the top of the panel, green)
  3. Put a tick on "Show processes running by all users"
  4. We are looking for a process called "w3wp.exe"
  5. Click "Join"