From: Ivan M. (JIRA) <tr...@fi...> - 2016-12-09 10:58:19
|
Connect throws System.PlatformNotSupportedException in Linux (NET Core) ----------------------------------------------------------------------- Key: DNET-725 URL: http://tracker.firebirdsql.org/browse/DNET-725 Project: .NET Data provider Issue Type: Bug Components: ADO.NET Provider Affects Versions: 5.6.0.0 Environment: FibirdSql.Data.FirebirdClient 5.6.0.0 .NET Command Line Tools (1.0.0-preview2-1-003177) Runtime Environment: Linux ubuntu 16.10 x64 Reporter: Ivan Masmitja Assignee: Jiri Cincura 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(); } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |