Issue Details (XML | Word | Printable)

Key: DNET-725
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Ivan Masmitja
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
.NET Data provider

Connect throws System.PlatformNotSupportedException in Linux (NET Core)

Created: 09/Dec/16 10:57 AM   Updated: 09/Dec/16 11:01 AM
Component/s: ADO.NET Provider
Affects Version/s:
Fix Version/s:

.NET Command Line Tools (1.0.0-preview2-1-003177)
Runtime Environment: Linux ubuntu 16.10 x64

 Description  « Hide
Testing last versión in NET Core I had PlatformNotSupportedException when it tries to connect.

System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.Net.Sockets.SocketPal.WindowsIoctl(SafeCloseSocket handle, Int32 ioControlCode, Byte[] optionInValue, Byte[] optionOutValue, Int32& optionLength)
at System.Net.Sockets.Socket.IOControl(Int32 ioControlCode, Byte[] optionInValue, Byte[] optionOutValue)
at FirebirdSql.Data.Common.Extensions.SetKeepAlive(Socket socket, UInt64 time, UInt64 interval)
at FirebirdSql.Data.Client.Managed.GdsConnection.Connect()
at FirebirdSql.Data.FirebirdClient.ClientFactory.CreateManagedDatabase(FbConnectionString options)
at FirebirdSql.Data.FirebirdClient.ClientFactory.CreateDatabase(FbConnectionString options)
at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
at FirebirdSql.Data.FirebirdClient.FbConnectionPoolManager.Pool.CreateNewConnectionIfPossibleImpl(FbConnectionString connectionString)
at FirebirdSql.Data.FirebirdClient.FbConnectionPoolManager.Pool.GetConnection(FbConnection owner)
at FirebirdSql.Data.FirebirdClient.FbConnection.Open()
at TestFirebird.Program.Main(String[] args)

Test code:

private static void TestFirebird()
    FbConnectionStringBuilder csb = new FbConnectionStringBuilder();
    csb.DataSource = "testserver";
    csb.Database = "testdb";
    csb.UserID = "SYSDBA";
    csb.Password = "masterkey";
    var cstr = csb.ToString();

    FbConnection connection = new FbConnection(cstr);

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order

Jiri Cincura made changes - 09/Dec/16 11:01 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s vNext [ 10790 ]
Resolution Fixed [ 1 ]