asp.net - Visual Studio 中的浏览器链接不起作用

标签 asp.net asp.net-mvc visual-studio-2013 browser-link

我正在尝试使用 以 Debug模式启动我的 Web 应用程序 (asp.net MVC)浏览器链接 在浏览器期间启用编辑操作

但实际上当我尝试这样做时(浏览器链接不起作用,它要求我在 Web.Config 中注册页面检查器)

enter image description here

编辑

当我将以下内容添加到 web.config 时,什么也没有发生

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

我仍然看不到任何浏览器通过 连接浏览器链接

知道我已启用 debug=true在 web.config 中
<compilation debug="true" targetFramework="4.6" />

并且知道我已经卸载了 Web Essentials 包

enter image description here

最佳答案

在您的 web.config 中添加以下内容:

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

关于asp.net - Visual Studio 中的浏览器链接不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30962597/

相关文章:

asp.net - 没有 Microsoft Ajax JavaScript 的 CompositeScript

c# - 如何在 ASPX 中引用变量背后的代码?

c# - Response.End() 在将 gridview 导出到 excel 文件时产生错误

javascript - prompt() 与 Internet Explorer 8

asp.net-mvc - ASP.NET MVC3 编辑器模板和名称属性

c# - 如何使用 AutoMapper 将 viewModel 映射到具有数组的层次结构模型?

c# - 如何在 Visual Studio 2013 中安装 WindowsAzure.Storage?

asp.net-mvc - 自定义 View 引擎中的 ASP.NET MVC 自定义属性

c# - 如何让文本框只接受有效的电子邮件?

c# - 可移植类库中的计时器