HttpRuntime CacheInternal NULL reference exception while reading user sessions (Reflection)

前端 未结 3 1080
执笔经年
执笔经年 2021-01-19 16:11

After some updates on our windows servers(2008R2 ,2012) Asp.net application throwing error:

var obj_1 = typeof(HttpRuntime).GetProperty(\"CacheInternal\", Bi         


        
3条回答
  •  面向向阳花
    2021-01-19 16:43

    I have find the solution. Now HTTPRuntime class doesnt have CacheInternal Property.So to achive the above task I have created a global list adding sessions in that list in Session_Start and removing the sessions in Sessions_end functions of Global.asax.

提交回复
热议问题