惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
博客园 - Franky
GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
博客园_首页
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recent Announcements
Recent Announcements
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
L
LangChain Blog
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
AI
AI
T
Troy Hunt's Blog
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
Attack and Defense Labs
Attack and Defense Labs

博客园 - jlzhou

System is unusable after upgrade to ubuntu 20.10 - i915 GPU hang ubuntu 20.04版本更新软件源 Windows10 64位部署odoo12开发环境 macOS 10.13 High Sierra odoo11 开发配置--完整版 odoo11社区版python依赖库相对odoo10的变化 macOS Sierra(10.12.6), odoo(11.0), Python(3.5.4)配置 macOS Sierra 10.12.6 odoo 10.0 开发环境配置 配置ubuntu 16.04.1 LTS odoo 10.0开发环境 配置ubuntu 14.04.3 LTS odoo 9.0开发环境 PyCharm 4.5.4 环境配置 配置Windows 2008 R2 64位 Odoo 8.0 源码PyCharm开发调试环境 [转]编译VC++程序warning C4819快速解决 Google被墙 Android开发工具下载地址 Mac OS X Yosemite安装盘U盘制作 配置iDempiere源码开发环境 开源免费ERP/CRM/SCM:iDempiere 2.0 安装配置 在Ubuntu 14.04.1中安装VMware Tools的步骤 服务器虚拟化ESXi 5.5安装过程 揭秘IT人才特点:中美印日四国程序员比较
解决VS2013+IE11调试DevExpress ASP.NET MVC的性能问题
jlzhou · 2014-12-25 · via 博客园 - jlzhou

将一个MVC项目从12.2升级到14.2,VS2012升到2013,发现使用IE11调试非常慢卡死,CPU占用100%,后来经过排除,发现只有DevExpress的MVC项目有这个问题。

最后在DevExpress的支持页面找到答案,原来是VS2013的Browser Link功能造成的。

  • If you use Visual Studio 2013 for web development, you could face some issues:
    1) A Web application is being loaded for a very long time/client scripts are being loaded long when you debug it on the development server;
    2) CPU usage by the local IIS worker process increases enormously while debugging the application;
    3) Pages that use the jQuery library return JavaScript errors;
    4) HTML markup contains garbage tags.

In Microsoft Visual Studio 2013, the Browser Link feature was introduced. It provides dynamic exchange between IDE and any open browser on your machine. With the help of this feature, you can test changes in page markup in browsers on the fly, inspect HTML objects, etc. However, the use of this feature might cause abovementioned problems in the debugging process. 

A common solution is to disable Browser Link in Visual Studio:

via menu (uncheck the "Enable Browser Link" check box)

解决办法是在主界面菜单中禁用这个功能,就在绿色运行尖头按钮旁边的Browser Link下拉菜单中。

或者修改web.config文件,添加下面的内容:

<appSettings><add key="vs:EnableBrowserLink" value="false"/></appSettings>

DevExpress支持参考地址 https://www.devexpress.com/Support/Center/Question/Details/T102322

此问题的详细分析:

Case 1 and 2: The cause of the problem is that the Browser Link feature requires dynamic compression to be disabled. The dynamicCompressionBeforeCache attribute allows IIS to dynamically compress the response when a request is made for the first time and queues the content for compression. When this attribute is enabled, a page loads faster, whereas if it is disabled, it causes additional CPU consumption and increases the page load time -  see the remarks section of the MSDN : urlCompression article.

In these cases, the only solution is to disable the Browser Link feature as described above.

Case 3:
Browser Link's Scripts Manager adds a jQuery reference to the <body> tag. JavaScript is an interpreter language and processes code line-by-line, so the place where the scripts are referenced or declared is really important. If a custom script that uses the jQuery library is declared before the body (commonly, scripts are added in the head), it will not work correctly. 

If you want the Browser Link option to be enabled, you can move jQuery-dependable scripts to the <body> tag.

Case 4:
This issue is usually caused by a page compression conflict. If URL compression has the enabled dynamicCompressionBeforeCache that is set by default for IIS 7.5, it interferes with HttpModules that are used by Browser Link, and produces problems in output.
If you want the Browser Link option to be enabled, disable the dynamicCompressionBeforeCache (web.config -> system.webServer):


<urlCompression doDynamicCompression="true"doStaticCompression="true"dynamicCompressionBeforeCache="false" />

>>>>> 版权没有 >>>>> 欢迎转载 >>>>> 原文地址 >>>>> http://www.cnblogs.com/jlzhou >>>>> 雄鹰在鸡窝里长大,就会失去飞翔的本领,野狼在羊群里成长,也会爱上羊而丧失狼性。人生的奥妙就在于与人相处。生活的美好则在于送人玫瑰。和聪明的人在一起,你才会更加睿智。和优秀的人在一起,你才会出类拔萃。所以,你是谁并不重要,重要的是,你和谁在一起。