找回密码
 注册
关于网站域名变更的通知
查看: 699|回复: 3
打印 上一主题 下一主题

使用mono连接SQLServer需要注意什么?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2021-7-29 14:59 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
- T. K/ j2 |+ _4 N1 \
Jexus专业版 6.27 v" r7 @1 j7 u( C' }# [2 b

% Z- N! [4 r) h8 O1 y, `, [Mono/6.8.0.105, Build: 2020.03.053 j- k, L1 H* U
. i/ L; k% w) |9 A' r3 r5 \
Jexus/6.2.1.12 Linux
. v8 @* Z$ q. u/ g6 ^7 [* `; l* S; Y# P$ V/ S1 }% A4 D0 ?  C

! Q* ?4 \/ D. g3 Z& ^/ c" d1 ~* r3 o* S/ n$ X
目前使用的是ADO.NET , 按理来说应该是完全支持的
1 _) V: o# X- q. O) d& U项目在Windows下面的时候没问题
% W( C# }$ |, K9 r7 U" w(最后直接使用DBHelper进行数据链接进行排查,在SqlCommand实例化的时候就会报错)4 t- @1 }) u; a0 i4 V: g
: g+ i. L4 J, v, |+ I$ N8 b  b
报错信息如下- Q* @% w$ \- u# Y! C( V
(主要是不清楚这种情况是要修改什么东西来适配,还望告知,万分感谢)" [$ c$ }  ]1 j4 F  f: I9 q
( x! K3 K5 N- f# O- j  z2 u
System.ArgumentException
. n. k! w3 T/ I, k/ ?& a1 |Keyword not supported: 'version'.' m5 Y8 P8 i% \# A! }% ^
Description: HTTP 500.Error processing request.7 [/ I$ W1 F( H. y- V* g) c

; `1 _9 E) z% g, O4 zDetails: Non-web exception. Exception origin (name of application or object):System.Data.$ _2 }) j" N, N/ ^5 L+ N

& h8 R) P) \: ~0 NException stack trace:$ F8 U; o0 o5 z  f
7 s# U6 n5 A+ e/ k9 S9 G% A
at System.Data.Common.DbConnectionOptions.ParseInternal (System.Collections.Generic.Dictionary`2[TKey,TValue] parsetable, System.String connectionString, System.Boolean buildChain, System.Collections.Generic.Dictionary`2[TKey,TValue] synonyms, System.Boolean firstKey) [0x0005f] in <50a6f8536b7b49b4a290cd95548dae1e>:0
6 E- H' R  L2 }6 }; I4 U6 e' `  at System.Data.Common.DbConnectionOptions..ctor (System.String connectionString, System.Collections.Generic.Dictionary`2[TKey,TValue] synonyms) [0x00030] in <50a6f8536b7b49b4a290cd95548dae1e>:0 ; N  I4 ?- y8 i( i# b& {
  at System.Data.SqlClient.SqlConnectionString..ctor (System.String connectionString) [0x00007] in <50a6f8536b7b49b4a290cd95548dae1e>:0 + b% S0 x/ Z' ^6 x$ B* R% T# X+ @
  at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions (System.String connectionString, System.Data.Common.DbConnectionOptions previous) [0x00000] in <50a6f8536b7b49b4a290cd95548dae1e>:0 ( d3 d$ u* S9 A: E. F
  at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup (System.Data.Common.DbConnectionPoolKey key, System.Data.ProviderBase.DbConnectionPoolGroupOptions poolOptions, System.Data.Common.DbConnectionOptions& userConnectionOptions) [0x0003e] in <50a6f8536b7b49b4a290cd95548dae1e>:0
: z  `9 m+ s+ S* @- N  at System.Data.SqlClient.SqlConnection.ConnectionString_Set (System.Data.Common.DbConnectionPoolKey key) [0x00008] in <50a6f8536b7b49b4a290cd95548dae1e>:0 * N) d* w4 u- T* c
  at System.Data.SqlClient.SqlConnection.set_ConnectionString (System.String value) [0x00042] in <50a6f8536b7b49b4a290cd95548dae1e>:0
" U3 e& C  R: M- a# G; o4 r1 a* b  at System.Data.SqlClient.SqlConnection..ctor (System.String connectionString) [0x00006] in <50a6f8536b7b49b4a290cd95548dae1e>:0 : Q$ V' t& X1 u& a# s9 ^% v0 j3 c
  at (wrapper remoting-invoke-with-check) System.Data.SqlClient.SqlConnection..ctor(string)

该用户从未签到

2#
发表于 2021-7-29 16:03 | 只看该作者
求大佬带啊?给点学这方面的资料吧

该用户从未签到

3#
发表于 2021-7-29 16:04 | 只看该作者
虽然我不懂,但是我觉得牵扯到连接,那是不是要检查一下接口地方,看看是否有问题

该用户从未签到

4#
发表于 2021-7-29 16:08 | 只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-11-24 06:46 , Processed in 0.140625 second(s), 23 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表