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

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

[复制链接]

该用户从未签到

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

EDA365欢迎您登录!

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

x
* f9 ?$ \' H7 L4 ~
Jexus专业版 6.2
0 [2 y7 u7 i8 \5 v% ]0 ^. s( @' N4 Z) ?/ B& H
Mono/6.8.0.105, Build: 2020.03.05$ \. o) Z: U0 W% ?3 u+ ?
' Y" Z0 F! S# E* W
Jexus/6.2.1.12 Linux
$ y% y7 D/ l  C" \/ C5 k; f; _
9 E2 P/ c/ |# u
% E! X2 r  C1 |, w0 A7 C  J+ e% B7 _2 a1 R. b
目前使用的是ADO.NET , 按理来说应该是完全支持的7 [* P; f- R. @5 v' B
项目在Windows下面的时候没问题2 Y$ _, Y) ?3 _0 r9 O6 C
(最后直接使用DBHelper进行数据链接进行排查,在SqlCommand实例化的时候就会报错), X: \* w7 R2 h# _. O
( r& N$ ^8 @9 B6 f
报错信息如下4 o/ O  \  r! r! b$ O
(主要是不清楚这种情况是要修改什么东西来适配,还望告知,万分感谢)
0 @/ e( |2 M  U" }7 |+ A  H
  _. T4 @3 H3 w/ z- R  q* I1 g2 FSystem.ArgumentException
+ ?' y# l5 K- _Keyword not supported: 'version'." @1 P8 S; s6 M4 \; |
Description: HTTP 500.Error processing request.
& z# \& i+ B' r6 m3 R8 @+ n2 i1 T
7 V. R+ y. d4 r5 j& m; |. ^Details: Non-web exception. Exception origin (name of application or object):System.Data.8 o& p) Q* `0 q5 k) n- I" @6 J
& c' N+ k/ ]* [
Exception stack trace:- h/ O: r" Z, \% t. Q

4 P6 A! h  F+ C. Uat 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
1 j# t* a, n' @0 ^6 m  at System.Data.Common.DbConnectionOptions..ctor (System.String connectionString, System.Collections.Generic.Dictionary`2[TKey,TValue] synonyms) [0x00030] in <50a6f8536b7b49b4a290cd95548dae1e>:0 * A2 f2 m$ j# X2 s) R! y" g. ~1 X
  at System.Data.SqlClient.SqlConnectionString..ctor (System.String connectionString) [0x00007] in <50a6f8536b7b49b4a290cd95548dae1e>:0
0 r7 G/ U: @' c- R) h+ C! I8 h8 k  at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions (System.String connectionString, System.Data.Common.DbConnectionOptions previous) [0x00000] in <50a6f8536b7b49b4a290cd95548dae1e>:0
- W! m5 @& W% ~; Q7 B" Q! 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 + X) k$ D: U6 Y9 |- h$ D  ]7 l
  at System.Data.SqlClient.SqlConnection.ConnectionString_Set (System.Data.Common.DbConnectionPoolKey key) [0x00008] in <50a6f8536b7b49b4a290cd95548dae1e>:0
! T4 v7 O5 K1 [: o& b2 N3 k  at System.Data.SqlClient.SqlConnection.set_ConnectionString (System.String value) [0x00042] in <50a6f8536b7b49b4a290cd95548dae1e>:0 5 n4 O' W$ z3 h3 ^
  at System.Data.SqlClient.SqlConnection..ctor (System.String connectionString) [0x00006] in <50a6f8536b7b49b4a290cd95548dae1e>:0 8 A) X. H4 f  E9 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 01:49 , Processed in 0.140625 second(s), 23 queries , Gzip On.

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

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

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