-
Notifications
You must be signed in to change notification settings - Fork 8
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
不支持System.Data.SqlClient?(System.Data.SqlClient unsupported?) #6
Comments
Hi @lds2013 SQL Server is available for Linux MIPS64R2? Thanks, |
SQL server is installed on another windows server 2012 server, and my project just connects to SQL server.
SQL server is installed on another windows server 2012 server, and my project just connects to SQL server. |
I see! But the connection library, just like libmysqlclient.so, is available for Linux MIPS64R2? Thanks, |
The connection library implements . NetStandard, version = 2.1. I don't know it is available for Linux MIPS64R2 is supported. |
There is MySql.Data! And libmysqlclient.so is available for MIPS64R2:
You can try to use MySQL instead of SQL Server only for test purpose. Thanks, |
Hi @am11 Is libSQLServerClient.so, just like libmysqlicent.so, available for Linux? It needs to port SQL Server Client connection library for Linux MIPS64R2. Any suggestion? \cc @jkotas Thanks, |
I switch to MySQL and call it directly MySql.Data.dll Available. |
Good news! Then you can use MySQL for development environment, but I have no idea about the product environment... Thanks, |
System.Data.SqlClient does not depend on a connection library like that on Linux. |
Hi @jkotas Thanks for your response! I will check it when I gotta home :) Windows is not available in my office. Please waiting for my good news! Thanks, |
@lds2013, do you see the same problem with the latest version of System.Data.SqlClient https://www.nuget.org/packages/System.Data.SqlClient/4.8.2? Similar issue was raised here: dotnet/runtime#28416. I think this is not related to MIPS64 architecture support. System.Data.SqlClient is a managed library so it should work on Linux with supported architectures. |
Hi @am11 Thanks for your kind response!
I will investigate it. Thanks, |
BTW @sunny868 fixed Thanks, |
Hi @lds2013 I reproduced the issue for MIPS64! ConsoleApp1.zip was created and built under Windows 10 with Visual Studio 2019 by following the article in Chinese simpilfied: Installed the
MIPS64:
But it is OK for Linux X64:
We will double check the corefx for MIPS64 cc @sunny868 Thanks, |
It is lack of MIPS64:
We face the similar issues about vstest and roslyn. Any suggestion? \cc @heiher Thanks, |
These architecture specific dependencies are for Windows. You are not doing Windows MIPS port. I do not see the problem. |
Could this be a little help? dotnet/SqlClient#385 |
I am looking for System.Data.SqlClient arm. Testcase: ConsoleApp1 Windows X64, Linux X64/ARM64 is not able to reproduce the issue. Thanks, |
|
@xiangzhai could you get lldb backtrace with SOS? Also |
Hi @am11 Thanks for your kind response! I reproduced the issue for Linux X64 on purposely:
Linux X64:
Thanks, |
Good news is Testcase: HelloMySQL.zip
But how to enum all Linux distros for MIPS64? Thanks, |
@xiangzhai, is MIPS64 RID not implemented? It is surprising how things are working without proper RID. Typically RID is the important aspect to run dotnet apps, interesting. Basically parts of what we did for illumos/Solaris RID implementation: https://github.com/dotnet/runtime/pull/37016/files. |
Unimplemented. TBD.
Thanks for your teaching! |
Thank you very much for your replies. My problem here is that errors only occur when connecting to SQL Server (2008R2 and 2014) on the Loongson platform. CentOS 7.6 on x86 can connect to SQL Server normally. Recently, it has been migrated to Loongson platform. The above error occurred: System.Data.SqlClient is not supported on this platform, so I suspect that Loongson has not dealt with the related issues, and the conversion to MySQL can be used normally. |
Fixed!
Thank @am11 so much! @lds2013 Please waiting for the next EA release. Cheers, |
BTW @lds2013 Please paste Thanks, |
Thanks! |
Is this RID too narrowly defined? |
IMO, it should be something like
|
Modify port/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props to enum ALL Linux distros for MIPS64 such as: debian, loongnix, neokylin, uos, etc:
Re- Fallback to
Thanks, |
@xiangzhai, thanks. Sorry I did not realize that loongnix is a distro on its own. :( There are two concepts: portable and nonportable RIDs (ref: https://github.com/dotnet/runtime/blob/8ceca25036b395d12c1feedf6f3318786ddb355c/eng/native/init-distro-rid.sh). With portable RID, we should expect |
You are welcome! I was a Linux distros Developer too :)
Please see my comment. |
Just for clarification; the RID reported by |
机器环境为 龙芯3A4000,系统中标麒麟桌面版V7.0,运行时:aspnetcore-runtime-3.1.7-ea-20200831-linux-loongson3a.tar.gz,
可以正常运行.netcore 3.1 Demo(没有数据库连接),但是项目加入数据库连接(SQL Server),报如下错误:
System.Data.SqlClient is not supported on this platform..
The text was updated successfully, but these errors were encountered: