iis - browserLink 错误 -- 不支持的伪 : index

标签 iis visual-studio-2013 browser-link

在 VS 2013 下运行基于 Razor 的 Web 项目时,使用 IIS,我在 browserLink 中看到以下错误:

Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: index 

关闭 browserLink 可以消除错误。但真正的解决方法是什么?

类似问题请看这里:

Page uses an invalid or unsupported form of compression when debugging ASP.NET MVC app with Visual Studio 2013 Preview

最佳答案

这个问题似乎只在使用 browserLink 时出现,通常不会出现在生产环境中。

I found a discussion about it here .其中说:

The issue is known bug in jQuery which is internally used in the Browser Link functionality. When selecting elements which contains ":" in its id, jQuery does not return element. The reason for the problem is that jQuery has some predefined pseudo-selectors and “:00” for example is not a valid selector.

The Browser Link script tries to find our detail tables elements by its id (the detail table id contains ":"), jQuery does not return element and the Browser Link scripts throws an error that the character sequence is not recognized.

As this issue is still not fixed in the latest version of jQuery the only workaround for now is to disable the Browser Link feature in VS 2013.

给定的禁用browserLink的选项包括以下选项:

  • 将 appSetting vs:EnableBrowserLink 设置为 false
  • 在 web.config 文件中设置 debug=false

关于iis - browserLink 错误 -- 不支持的伪 : index,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20221845/

相关文章:

javascript - 页面加载时浏览器链接 JS 错误

wcf - 使用 http 和 https 绑定(bind)/端点部署 WCF 服务

html - 当我将网站上传到 IIS 时,如何找出网站看起来不同的原因?

asp.net-mvc - 无法在 Visual Studio 2013 Ultimate Update 5 中使用脚手架创建 MVC View

c++ - 如何使用 Visual Studio 创建源代码树外项目?

visual-studio - VS 2012/2013 AccessViolationException

javascript - 浏览器链接 : Failed to invoke return value callback: TypeError: Cannot read property 'files' of null

IIS URL 重写 - 操作 URL 中的多个条件反向引用

asp.net - ASP.NET MVC 路由和经典的 ASP 主页(VBScript,不是 Web 表单)可以很好地协同工作吗?

javascript - 不匹配的匿名 define() 模块 : function() {"use strict";return axe}