ConfigurationManager.AppSettings在app pool recycle上返回null [英] ConfigurationManager.AppSettings returns null on app pool recycle
问题描述
当app pool回收时,我在访问web.config中的appsettings时变为null。这不是一贯的再现。这类似于以下问题。它会在应用程序池加载更多请求并且被回收时发生。
http://stackoverflow.com/questions/22830723/custom-configuration-section-is-null-after- app-pool-recycle
这是iis或.net框架的问题?或者这是正确的行为?
任何有用的信息。
谢谢
Dhivya
我建议您参考以下论坛以获得更好的案例帮助:
< a href ="http://forums.asp.net/"target ="_ blank"> http://forums.asp.net/
Hi,
I am getting null when accessing appsettings in web.config while app pool recycles. This is not consistently reproduced. This is similar to the below issue. It happens when app pool is loaded with more request and it is recycled.
http://stackoverflow.com/questions/22830723/custom-configuration-section-is-null-after-app-pool-recycle
This is an issue with iis or .net framework? Or this is the right behavior?
Any info on this helpful.
Thanks
Dhivya
I suggest that you refer the below forums for a better assistance on your case:
这篇关于ConfigurationManager.AppSettings在app pool recycle上返回null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!