I have a monorail web application running on iis7. It appears like two concurrent requests are handled on two different appdomains! As far as I know, each application should have one appdomain and multiple httpapplications to handle requests...
我有一个在iis7上运行的单轨web应用程序。看起来两个并发请求在两个不同的appdomains上处理!据我所知,每个应用程序应该有一个appdomain和多个httpapplications来处理请求...
Is there something I am missing? (configuration perhaps?)
有什么我想念的吗? (配置也许?)
2 个解决方案
#1
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. (global.asax, web.config, BIN, App_Code ++)
Asp.net针对不同的操作监视大量目录和文件,这将导致appdomain卸载。 (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-查看此博客是-monitored.aspx
#2
I was writing output files to a folder in the bin directory of the web application. 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.
我正在将输出文件写入Web应用程序的bin目录中的文件夹。由于此文件夹被监视,它导致应用程序池回收,这就是为什么第二个请求是在另一个(新)appdomain上处理的原因。
For some reason I thought that only web.config, global.asax are watched...
出于某种原因,我认为只有web.config,global.asax被观看...
#1
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. (global.asax, web.config, BIN, App_Code ++)
Asp.net针对不同的操作监视大量目录和文件,这将导致appdomain卸载。 (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-查看此博客是-monitored.aspx
#2
I was writing output files to a folder in the bin directory of the web application. 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.
我正在将输出文件写入Web应用程序的bin目录中的文件夹。由于此文件夹被监视,它导致应用程序池回收,这就是为什么第二个请求是在另一个(新)appdomain上处理的原因。
For some reason I thought that only web.config, global.asax are watched...
出于某种原因,我认为只有web.config,global.asax被观看...