ConfigurationManager.AppSettings在app pool recycle上返回null [英] ConfigurationManager.AppSettings returns null on app pool recycle

查看:76
本文介绍了ConfigurationManager.AppSettings在app pool recycle上返回null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当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/


https://forums.iis.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:

http://forums.asp.net/

https://forums.iis.net/


这篇关于ConfigurationManager.AppSettings在app pool recycle上返回null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆