简体   繁体   English

iis7下的Web应用程序的许多appdomains

[英]Many appdomains for a web application in under iis7

I have a monorail web application running on iis7. 我有一个在iis7上运行的单轨Web应用程序。 It appears like two concurrent requests are handled on two different appdomains! 看起来两个并发请求是在两个不同的appdomain上处理的! As far as I know, each application should have one appdomain and multiple httpapplications to handle requests... 据我所知,每个应用程序应该有一个appdomain和多个httpapplications来处理请求...

Is there something I am missing? 我有什么想念的吗? (configuration perhaps?) (也许是配置?)

See you found the solution yourself :) 看到您自己找到了解决方案:)

Asp.net watches a lot of directories and files for different actions, that will cause the appdomain to unload. Asp.net监视许多目录和文件中的不同操作,这将导致appdomain卸载。 (global.asax, web.config, BIN, App_Code ++) (global.asax,web.config,BIN,App_Code ++)

If you want more information, take a look at this blog on msdn blogs.msdn.com/tmarq/archive/2007/11/02/asp-net-file-change-notifications-exactly-which-files-and-directories-are-monitored.aspx 如果您需要更多信息,请在msdn blogs.msdn.com/tmarq/archive/2007/11/02/asp-net-file-change-notifications-exactly-which-files-and-directories-上查看此博客。被监视的.aspx

I was writing output files to a folder in the bin directory of the web application. 我正在将输出文件写入Web应用程序的bin目录中的文件夹。 Since this folder is watched, it caused the application pool to recycle and that's why the second request was handled on a different (new) appdomain. 由于监视了此文件夹,因此导致应用程序池回收,这就是为什么第二个请求在不同的(新)应用程序域上得到处理的原因。

For some reason I thought that only web.config, global.asax are watched... 由于某种原因,我认为只监视web.config,global.asax ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM