Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dapper项目引用找不到 #11

Open
LGinC opened this issue Feb 7, 2018 · 8 comments
Open

Dapper项目引用找不到 #11

LGinC opened this issue Feb 7, 2018 · 8 comments

Comments

@LGinC
Copy link

LGinC commented Feb 7, 2018

首先我更新了解决方案的Nuget, 发现在BrokerService EventService和Web的Bootstrap.cs中有几个API发生变化,ENodeConfiguration的扩展方法InitializeSqlServerEventStore InitializeSqlServerLockService InitializeSqlServerPublishedVersionStore需要配置连接串参数。

然后是QueryService.Dapper项目的Dapper更新到1.50.4后运行时会提示找不到Dapper.dll,降级为1.50.2后提示
System.IO.FileLoadException:“Could not load file or assembly 'System.Data.SqlClient, Version=4.2.0.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)”

Nuget里找不到4.2.0.1这个版本的SqlClient

@ten-year
Copy link

刚测试也发现了这个问题,同时更新dapper及System.Data.SqlClient为最新版后解决了

@wangjunjx8868
Copy link

只更新哪个项目的Dapper?

@ten-year
Copy link

对应安装过的都替换成新版了

@ten-year
Copy link

dapper 1.50.5
System.Data.SqlClient 4.5.1

@wangjunjx8868
Copy link

我把相关类库中所有dapper和System.Data.SqlClient 升级到最新版,还是报那个错

@ten-year
Copy link

不应该啊,你在web里面再安装一个System.Data.Common 4.3.0试试

@wangjunjx8868
Copy link

不应该啊,你在web里面再安装一个System.Data.Common 4.3.0试试

好了,除了System.Data.Common 还需要在web里引用System.Data.SqlClient 就可以了。

还有就是 既然ENode 出现版了,作者还不出新的用法DEMO,这样如果项目里升级了各种报错

@ten-year
Copy link

啊对,是要引用一下。我估计汤总平时也比较忙。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants