简体   繁体   中英

Can't change IIS AppPool recycling conditions to 0

I host a WCF service on IIS via ASP.NET application.

I use static objects to hold sessions details so it is very important for me that the AppPool will not recycle its data unless I upload a new DLL or config file.

I changed the Idle Time-out (minutes) to 0 but when I try to change the Regular time intervals, Virtual memory usage and Private memory usage to 0, when I click Finish, the IIS won't save my changes.

What could be the cause of this? How can I solve it? Is there a work-around?

UPDATE

Is there a better solution than what I'm currently doing?

为了防止在应用程序池回收期间丢失会话,您需要将会话状态存储在ASP.NET状态服务,SQL Server DB或自定义会话状态提供程序中

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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