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

  • 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.Don’t forget to explore our thorough Software section or more useful guides on this topic.For more fixes and useful guides, we suggest that you visit our Fix Hub.

  • Download DriverFix (verified download file).

  • Click Start Scan to find all problematic drivers.

  • Click Update Drivers to get new versions and avoid system malfunctionings.

  • DriverFix has been downloaded by 0 readers this month.

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

1. Configure Visual Studio properly

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

After doing that, check if the problem is resolved.

  • services.AddRazorPages().AddRazorRuntimeCompilation();
  • Remove the following browserlink package:
  • VisualStudio.Web.BrowserLink
  • After doing that, you need to install this package:
  • VisualStudio.Web.BrowserLink.Loader

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

  • VisualStudio.Web.BrowserLink

  • VisualStudio.Web.BrowserLink.Loader

3. Repair the ASP.NET 5 bundle

  • Press Windows Key + S and enter control. Select Control Panel from the search results.
  • When Control Panel opens, go to Programs and Features.
  • Select NET 5 bundle and click the Repair option.
  • 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

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

<system.webServer>   

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

type=“System.Web.StaticFileHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”

resourceType=“File” preCondition=“integratedMode” />

</system.webServer>   

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, be sure to closely follow all solutions from this article.

Keep in mind that our solutions are not universal, and they might not work for your project.

  • Programming tools and tipsvisual studio

Email *

Commenting as . Not you?

Comment