IIS Express启动缓慢 [英] Slow startup with IIS Express
本文介绍了IIS Express启动缓慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的MVC应用程序和启动遇到问题.
I have a problem with my MVC application and startup.
每次我进行更改并且一个应用程序需要花费很长时间才能启动.
Every time I make a change and one the app its take a long time to start up.
我有大约100行与''iisexpress.exe''(CLR v4.0.30319:'
I have about 100 lines with ''iisexpress.exe' (CLR v4.0.30319:'
每次运行应用程序时都必须启动iisexpress吗?
Do I have to start iisexpress every time I run my application?
推荐答案
我在禁用日志记录后发现了明显的改进.
I found significant improvement after disabling logging.
为您的项目或计算机找到 IIS配置,通常在以下位置找到:
Locate the IIS config for your project or machine, typically found in:
-
%userprofile%\documents\iisexpress\config\applicationhost.config
-
.\.vs\config\applicationhost.config
- VS2019:
$(solutionDir)\.vs\{projectName}\config\applicationhost.config
%userprofile%\documents\iisexpress\config\applicationhost.config
.\.vs\config\applicationhost.config
- VS2019:
$(solutionDir)\.vs\{projectName}\config\applicationhost.config
然后注释掉或删除以下两个节点(在文档中的某个位置)
And comment out or delete the following two nodes (found somewhere in the document)
<add name="HttpLoggingModule" image="%IIS_BIN%\loghttp.dll" />
<add name="HttpLoggingModule" lockItem="true" />
这篇关于IIS Express启动缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文