Skip to content
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

Connect throws System.PlatformNotSupportedException in Linux (NET Core) [DNET725] #669

Closed
firebird-automations opened this issue Dec 9, 2016 · 2 comments

Comments

@firebird-automations
Copy link

Submitted by: Ivan Masmitja (imasmitja)

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\);
connection\.Open\(\);
connection\.Close\(\); 

}

@firebird-automations
Copy link
Author

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: vNext [ 10790 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants