AppDomain回收会导致应用程序在线保存的数据丢失,那么在什么情况下会引起AppDomain回收呢?

1.  修改配置文件,如Machine.Config, Web.Config,Global.asax

2. 修改了bin目录以及里面的内容
3. 重编译数超过在machine.config或web.config中<compilation numRecompilesBeforeAppRestart=/> 设置的值
4. 修改应用程序虚拟目录的物理路径
5. 修改CAS策略
6. 重启web 服务
7. 删除应用程序的子目录(仅.net 2.0)

有关AppDomain的回收,可参阅Tess的这篇博客贴子:http://blogs.msdn.com/tess/archive/2006/08/02/686373.aspx

相关文章:

  • 2021-08-16
  • 2021-08-13
  • 2021-08-10
  • 2021-10-20
  • 2021-12-31
  • 2021-06-25
  • 2022-03-04
猜你喜欢
  • 2022-12-23
  • 2021-05-22
  • 2022-03-04
  • 2021-07-24
  • 2022-01-29
  • 2021-09-29
  • 2021-11-03
相关资源
相似解决方案