报警提示 System.NullReferenceException:“未将对象引用设置到对象的实例。
时间:2019-11-03 18:31:37
收藏:0
阅读:1018
System.NullReferenceException:“未将对象引用设置到对象的实例。是就因为Session在记录到服务器时,没有添加 IRequiresSessionState 所以运行时回报警,
解决错误就是在最上方的头部添加IRequiresSessionState,并在引用using System.Web.SessionState;即可。


原文:https://www.cnblogs.com/yutang-wangweisong/p/11787758.html
评论(0)