我在我的应用程序中使用MySql
和SQLLITE
。使用处理查询后返回SQLLITE
的session
值插入数据或更新数据时。null
所以为了克服这个我写如下Web.Config
<sessionState mode="StateServer"></sessionState>
一切正常,但是当进入某个页面时,我收到错误消息
Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.
在剩余的页面中,每件事都运行良好,谁能说出为什么会这样