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

升级到1.7版本后报错呢 #392

Closed
pccai opened this issue Jul 28, 2020 · 2 comments
Closed

升级到1.7版本后报错呢 #392

pccai opened this issue Jul 28, 2020 · 2 comments

Comments

@pccai
Copy link

pccai commented Jul 28, 2020

2020-07-28 23:00:11.9095|Error|12> mscorlib System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.Exception: 【主库】状态不可用,等待后台检查程序恢复方可使用。“Microsoft.Data.SqlClient.TdsParser”的类型初始值设定项引发异常。
在 FreeSql.Internal.ObjectPool.ObjectPool1.getFree(Boolean checkAvailable) 在 FreeSql.Internal.ObjectPool.ObjectPool1.Get(Nullable1 timeout) 在 FreeSql.SqlServer.SqlServerProvider1..ctor(String masterConnectionString, String[] slaveConnectionString, Func`1 connectionFactory)
--- 内部异常堆栈跟踪的结尾 ---
在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
在 System.Activator.CreateInstance(Type type, Object[] args)
在 FreeSql.FreeSqlBuilder.BuildTMark
在 FreeSql.FreeSqlBuilder.Build()

使用MSSQL, 和1.6的FreeSqlBuilder() 有差异?
tks。

@2881099
Copy link
Collaborator

2881099 commented Jul 28, 2020

引用的 adonet 驱动变化了,1.7.0之前是 system.data.sqlclient

1.7.0 引用的是 microsoft.data.sqlclient

#382

@2881099
Copy link
Collaborator

2881099 commented Jul 28, 2020

你的项目类型是 .net core 吗,是什么版本?

我这边单元测试通过了才发布的。

检查一下项目没引用的 adonet 是什么版本,可能是版本冲突。

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

2 participants