标签:style blog http color os art
IBatis.net在多线程中报错“WebSessionStore: Could not obtain reference to HttpContext”
分析:
因为ibatis的ISqlMapSession是存储在Http.Request.Items上的,在你新开的线程里是不能操作IIS的上的线程的,根据ibatis的文档上说的,可以用:HybridWebThreadSessionStore
解决:
重新指定SessionStore
_SqlMapper.SessionStore = new HybridWebThreadSessionStore(_SqlMapper.Id);
WebSessionStore: Could not obtain reference to HttpContext,布布扣,bubuko.com
WebSessionStore: Could not obtain reference to HttpContext
标签:style blog http color os art
原文地址:http://www.cnblogs.com/sword88/p/3833078.html