.NET Framework fails to connect with MS SQL server

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
h3x4d3c1m4l
Newbie
Newbie
Posts: 3
Joined: Thu Sep 28, 2017 6:31 pm

.NET Framework fails to connect with MS SQL server

Post by h3x4d3c1m4l »

When connecting to a Microsoft SQL server from C# code, an exception occurs:

Code: Select all

System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - Call not implemented.) ---> System.ComponentModel.Win32Exception (0x80004005): Call not implemented
Whole log (using WINEDEBUG=fixme+all,+loaddll): https://pastebin.com/2nUgyiaN

I tried .NET Framework 4.5 and 4.6.1, installed using winetricks but both give the same results. Other application give the same results too (e.g. LINQPad)
Unfortunately switching to Mono as .NET runtime won't be possible as the application uses WPF which Mono does not implement.

I tried lots of DLL overrides but none of them worked. Has anyone gotten this to work?
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: .NET Framework fails to connect with MS SQL server

Post by dimesio »

Code: Select all

wine: Call from 0x7b43c69c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
https://bugs.winehq.org/show_bug.cgi?id=42701
Locked