IISExpress上的ASP.NET MVC为每个请求重建整个站点 [英] ASP.NET MVC on IISExpress rebuilding entire site for each request

查看:73
本文介绍了IISExpress上的ASP.NET MVC为每个请求重建整个站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的组织最近进行了硬件刷新,因此所有软件(VS 2013等)都已重新安装.

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

现在我们都注意到一个特定的ASP.NET MVC 4.5应用程序运行非常慢.

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:域11):已卸载'C:\ Windows \ Microsoft.Net \ assembly \ GAC_32 \ mscorlib \ v4.0_4.0.0.0__b77a5c561934e089 \ mscorlib.dll'

'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'

输入后,它显示iisexpress加载了数百个.NET dll.

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

对于下一个请求,它将成为Domain 12,然后再次成为数百个dll加载的条目.

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

其他应用程序始终是DefaultDomain,并且没有性能问题.

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

是否有某个地方可以控制此设置?

Is there a setting somewhere that is controlling this?

编辑-更多信息: 第一个请求是DefaultDomain,然后从域10开始递增.

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

此应用在MVC 4.0上的先前版本运行正常.

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

版本之间的一个主要附加功能是Microsoft owin.

One major addition between versions is microsoft owin.

记录的事件发生在每个请求上-事件消息:应用程序正在关闭.原因:配置已更改,但是dev文件夹中的文件实际上并未更改.每次都会重新构建Temp ASP.NET文件夹.

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.

推荐答案

有一些方法可以记录应用程序域关闭发生的原因:

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

这篇关于IISExpress上的ASP.NET MVC为每个请求重建整个站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆