(帮忙)关于SESSION报错的问题!
已经配置了SQL SERVER存SESSION
并且 IIS上各种会话状态都设置了600分钟了,包括WEB.CONFIG什么的,都配置了过期时间了
但是在打开某个页面30分钟左右不动的时候,还是会报错,报错显示的内容如下
报错信息如下:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 44: {
Line 45: Button b = Page.Master.FindControl("MainContent").FindControl(strs[i]) as Button;
Line 46: if (SqlHelper.mylimit.IndexOf(strs[i].ToString()) == -1)
Line 47: {
Line 48: if (b != null)
是执行到
Line 46: if (SqlHelper.mylimit.IndexOf(strs[i].ToString()) == -1)
这一行的时候报错
这个代码是按照不同的角色权限加载菜单
谁能帮忙看看问题在哪里
并且 IIS上各种会话状态都设置了600分钟了,包括WEB.CONFIG什么的,都配置了过期时间了
但是在打开某个页面30分钟左右不动的时候,还是会报错,报错显示的内容如下
报错信息如下:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 44: {
Line 45: Button b = Page.Master.FindControl("MainContent").FindControl(strs[i]) as Button;
Line 46: if (SqlHelper.mylimit.IndexOf(strs[i].ToString()) == -1)
Line 47: {
Line 48: if (b != null)
是执行到
Line 46: if (SqlHelper.mylimit.IndexOf(strs[i].ToString()) == -1)
这一行的时候报错
这个代码是按照不同的角色权限加载菜单
谁能帮忙看看问题在哪里
...全文
相关推荐
Spring集成JPA配置懒加载报错解决方案
主要介绍了Spring集成JPA配置懒加载报错解决方案,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
SSH整合(注解方式)dataSource配置defaultAutoCommit启动报错
SSH整合(注解方式)dataSource配置defaultAutoCommit启动报错,解决办法
eclipse报错 eclipse启动报错解决方法
eclipse报错 eclipse启动报错解决方法 eclipse报错 eclipse启动报错解决方法
Hibernate环境配置与测试
Hibernate管理的三种状态 Transient(瞬时态) 使用new关键字,没有持久化,没有缓存到Session中 Persistent (持久态) 特点:已经持久化,添加到Session缓存中 Detached(游离态 特点:已被持久化,但不在Session缓存中,处于此对象的叫游离对象
CI框架自动加载session出现报错的解决办法
很多程序员在CI中使用session的时候,开启自动加载session之后网站就报错了,这篇文章主要介绍了CI框架自动加载session出现报错的解决办法,需要的朋友可以参考下


