禁用Visual Studio 2013的Browser Link功能

来源:互联网 发布:知乎 北上广深 编辑:程序博客网 时间:2024/05/01 08:00

在VS2013中,在IE浏览器浏览localhost网站时候,发现会不断有下面链接的请求,并在ff的控制台中输出错误信息:


GET http://localhost:37478/7fd25f8af33f443494e765be19be6240/browserLink [HTTP/1.1 200 OK 5ms]所用的 getPreventDefault() 已不赞成使用。请使用 defaultPrevented 替代。 browserLink:37GET http://localhost:37478/7fd25f8af33f443494e765be19be6240/arterySignalR/negotiate [HTTP/1.1 200 OK 2ms]GET http://localhost:37478/7fd25f8af33f443494e765be19be6240/arterySignalR/connect [HTTP/1.1 200 OK 2ms]POST http://localhost:37478/7fd25f8af33f443494e765be19be6240/arterySignalR/send [HTTP/1.1 200 OK 1ms]未找到元素 send:1GET http://localhost:37478/7fd25f8af33f443494e765be19be6240/arterySignalR/poll [HTTP/1.1 200 OK 59ms]POST http://localhost:37478/7fd25f8af33f443494e765be19be6240/arterySignalR/send [HTTP/1.1 200 OK 2ms]未找到元素 send:1GET http://localhost:37478/7fd25f8af33f443494e765be19be6240/arterySignalR/poll [HTTP/1.1 200 OK 1ms]GET http://localhost:36261/__browserLink/requestData/a771c863271d4efeadea8b768efcd368 [HTTP/1.1 200 OK 30ms]GET http://localhost:37478/7fd25f8af33f443494e765be19be6240/arterySignalR/poll [HTTP/1.1 200 OK 64ms]POST http://localhost:37478/7fd25f8af33f443494e765be19be6240/arterySignalR/send [HTTP/1.1 200 OK 1ms]未找到元素 send:1GET http://localhost:37478/7fd25f8af33f443494e765be19be6240/arterySignalR/poll [HTTP/1.1 200 OK 6872ms]

通过查阅网上资料得知,这是MS的一个browserLink功能。

关闭方法:


=============================================


check the msdn blog:(even though I'm not using vs

http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx

 

. How do I turn off Browser Link?

You can uncheck “Enable Browser Link” and it will be turned off “ Browser Link” for all future requests made.

image

You can also use the following appsettings in your web.config file.

1. Set appSetting “vs:EnableBrowserLink” to “false ““. This will  disable Browser Link.

image

2. Set debug= false in web.config file. This will  also disable Browser Link. Note that debug= true is required for Browser Link feature to work.


==============================================






0 0