Browser Link Not Working in Visual Studio? We Got Fixes

Take a closer look at our detailed solutions

by Milan Stanojevic
Milan Stanojevic
Milan Stanojevic
Windows & Software Expert
Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He's a PC enthusiast and he... read more
Affiliate Disclosure
  • If you’re a developer, you’re most likely familiar with Visual Studio.
  • Many Visual Studio users reported that Browser Link is not working for them, but there’s a way to fix this.
Fix Browser Link not working in Visual Studio

Visual Studio is one of the most used applications by developers. However, many reported that Browser Link isn’t working in Visual Studio for them.

This can be a big problem, especially if you’re working on an important project, and in today’s article, we will show you how to fix this problem once and for all.

1. Configure Visual Studio properly

  1. Add the following NuGet package: AspNetCore.Mvc.Razor.RuntimeCompilation
  2. Now add following line to the ConfigureServices() method in the startup.cs:
    • services.AddRazorPages().AddRazorRuntimeCompilation();
  3. Add this NuGet package: VisualStudio.Web.BrowserLink.
  4. Now locate Startup.cs file and add app.UseBrowserLink(); in the Configure() method.

After doing that, check if the problem is resolved.

  1. Remove the following browserlink package:
    • VisualStudio.Web.BrowserLink
  2. After doing that, you need to install this package:
    • VisualStudio.Web.BrowserLink.Loader

A few users reported that this solution worked for them, so you might want to try it out.

3. Repair the ASP.NET 5 bundle

  1. Press Windows Key + S and enter control. Select Control Panel from the search results.
    control panel visual studio browser link not working
  2. When Control Panel opens, go to Programs and Features.
    programs and features visual studio browser link not working
  3. Select NET 5 bundle and click the Repair option.
    repair program visual studio browser link not working
  4. Follow the instructions on the screen to repair it.

Once the process is finished, check if the problem is still there. Keep in mind that this solution might only work for older releases.

4. Modify the webconfig

  1. Locate the webconfig file.
  2. Modify it so that it looks like this:




<add name="Browser Link for HTML" path="*.html" verb="*"

type="System.Web.StaticFileHandler, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

resourceType="File" preCondition="integratedMode" />




Keep in mind that this solution only works if you’re using a static HTML page like with AngularJS.

If Browser Link is not working in Visual Studio for you, follow all solutions from this article closely.

Remember that our solutions are not universal and might not work for your project.

This article covers:Topics: