Browser link in Visual Studio not working

I am trying to run my web application (asp.net MVC) in debug mode using Browser Link . To enable editing operations while browsing

but actually when i try to do it (browser link doesn't work and asks me to register the page inspector in Web.Config)

enter image description here


Edit

and when i add the following to web.config nothing happens

<add key="VisualStudioDesignTime:Enabled" value="true" />
<add key="PageInspector:ServerCodeMappingSupport" value="Enabled"/>

      

still i dont see any browser connect via Browser Link

with the knowledge I included debug=true

in the web.config

<compilation debug="true" targetFramework="4.6" />

      

and knowing that I am uninstalling the required webpacks.

enter image description here

+3


source to share


2 answers


Add the following to your web.config:



<appSettings>
    <add key="VisualStudioDesignTime:Enabled" value="true" />
    <add key="PageInspector:ServerCodeMappingSupport" value="Enabled"/>
 </appSettings>

      

0


source


I found this post very helpful.

<system.webServer>
  <handlers>
    <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" />
  </handlers>
  <modules runAllManagedModulesForAllRequests="true" />
</system.webServer>

      



Make sure the element <modules>

may already exist.

0


source







All Articles