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

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

[复制链接]

该用户从未签到

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

EDA365欢迎您登录!

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

x
& R$ ]4 Q. t! y& F# e
Jexus专业版 6.2% V8 I. @/ `* Q8 j& P8 e2 w

4 V: Z" o0 X, e0 MMono/6.8.0.105, Build: 2020.03.05- e$ l) w3 P  V6 [4 r

. U+ {: |% G+ j8 mJexus/6.2.1.12 Linux
" b. _# |/ Q: P6 a1 D% V/ ?2 T& {" h
" _5 W) r, T9 g! L. k
5 s, M$ r( U8 p  O
目前使用的是ADO.NET , 按理来说应该是完全支持的9 ~' S, j3 l+ l
项目在Windows下面的时候没问题  E7 d, N: C2 }3 Z. y
(最后直接使用DBHelper进行数据链接进行排查,在SqlCommand实例化的时候就会报错)
) D1 V" K9 }% a& e% g/ X. J/ Z4 j0 o  a0 e9 j) C, R: t" w  ~% H
报错信息如下
: D6 c9 T3 `  W$ ~, T(主要是不清楚这种情况是要修改什么东西来适配,还望告知,万分感谢)
' A- j  g6 [3 H0 N3 W+ Y; v; d' b- F# l
System.ArgumentException
; N' \) ~& |3 |7 R6 ~6 m8 {Keyword not supported: 'version'., F% F9 X8 k3 g" P) ?, F, H
Description: HTTP 500.Error processing request.3 a6 _! l* Z6 u8 \, u. H

) L( V+ g% B6 y/ E, S4 l# i* z( b# NDetails: Non-web exception. Exception origin (name of application or object):System.Data.# _; B0 ^' w8 O* `$ o

. k4 z* m9 m8 m; y) ~Exception stack trace:
5 f0 z+ |& \; K0 b$ N
/ p" n+ \" \) p. {0 Vat 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 - \* q$ `( J' a! C9 F7 n4 Y
  at System.Data.Common.DbConnectionOptions..ctor (System.String connectionString, System.Collections.Generic.Dictionary`2[TKey,TValue] synonyms) [0x00030] in <50a6f8536b7b49b4a290cd95548dae1e>:0 0 X% h' E: S" F  o8 w7 ^9 H
  at System.Data.SqlClient.SqlConnectionString..ctor (System.String connectionString) [0x00007] in <50a6f8536b7b49b4a290cd95548dae1e>:0
' z9 c, c0 _1 B  u! Z( F  at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions (System.String connectionString, System.Data.Common.DbConnectionOptions previous) [0x00000] in <50a6f8536b7b49b4a290cd95548dae1e>:0 - A6 V4 v  h. t* ^% T' P; A7 M
  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 0 ~0 C1 C6 ^5 @. o+ V: M" q
  at System.Data.SqlClient.SqlConnection.ConnectionString_Set (System.Data.Common.DbConnectionPoolKey key) [0x00008] in <50a6f8536b7b49b4a290cd95548dae1e>:0
6 w" z1 y& p/ V  M5 j  at System.Data.SqlClient.SqlConnection.set_ConnectionString (System.String value) [0x00042] in <50a6f8536b7b49b4a290cd95548dae1e>:0 # x; K. G6 S/ k- K# q. F+ r9 }7 e
  at System.Data.SqlClient.SqlConnection..ctor (System.String connectionString) [0x00006] in <50a6f8536b7b49b4a290cd95548dae1e>:0   o' z' _- K4 R: `
  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 02:54 , Processed in 0.140625 second(s), 23 queries , Gzip On.

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

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

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