ASP.NET MVC on IISExpress rebuilding entire site for each request

六眼飞鱼酱① 提交于 2020-01-03 20:01:37

问题


My organisation recently did a hardware refresh, so all software (VS 2013 etc) is newly installed.

Now we are all noticing a particular ASP.NET MVC 4.5 application is running extremely slow.

Took me a while to notice this, but in the output while debugging the first entry after each request is

'iisexpress.exe' (CLR v4.0.30319: Domain 11): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'

After this entry, it shows iisexpress loading up hundreds of .NET dlls.

For the next request it will become Domain 12, and then hundreds of dll loaded entries again.

Other applications are always DefaultDomain, and have no performance issues.

Is there a setting somewhere that is controlling this?

Edit - more info: The very first request is DefaultDomain, then it starts incrementing from Domain 10.

A previous version of this app on MVC 4.0 is working fine.

One major addition between versions is microsoft owin.

Logged event happens on each request - Event message: Application is shutting down. Reason: Configuration changed, however no files have actually changed in the dev folder. Temp ASP.NET folder is getting rebuilt each time.


回答1:


There are ways to log the reason why the app domain shutdown happened:

http://blogs.msdn.com/b/tess/archive/2008/11/06/troubleshooting-appdomain-restarts-and-other-issues-with-etw-tracing.aspx



来源:https://stackoverflow.com/questions/26136804/asp-net-mvc-on-iisexpress-rebuilding-entire-site-for-each-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!