asp.net网站redis session配置灵异事件
1 <sessionState mode="Custom" customProvider="RedisSessionStateProvider"> 2 <providers> 3 <clear/> 4 <add name="RedisSessionStateProvider" type="Harbour.RedisSessionStateStore.RedisSessionStateStoreProvider" host="192.168.0.*:6379" clientType="pooled" /> 6 </providers> 7 </sessionState>
配置以及类库都已经弄好了。
ServiceStack.Interfaces换了3个版本,都不行。
死活出问题:
提示
Could not load file or assembly 'ServiceStack.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Could not load file or assembly 'ServiceStack.Interfaces, Version=4.0.0.0, Culture=neutral, PublicKeyToken=e06fbc6124f57c43' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
如果没有报上面的问题,就会提示
Harbour.RedisSessionStateStore.RedisSessionStateStoreProvider
报出的空指针异常。。。
打算换个
Harbour.RedisSessionStateStore.RedisSessionStateStoreProvider版本试一下。
用nuget管理包工具把
Harbour.RedisSessionStateStore.RedisSessionStateStoreProvider版本从1.4换成1.0。
搞定了。。。
posted on 2016-02-17 10:23 Questionfeet 阅读(554) 评论(2) 编辑 收藏 举报