1

I'm actually working on a project where I need to host a .NET webservice on a linux server hosting a firebird database. When I try to run the sample code from http://www.mono-project.com/Firebird_Interbase and call the method, my webservice return me :

System.NotImplementedException: The requested feature is not implemented.
  at System.Net.Sockets.Socket.IOControl (IOControlCode ioControlCode, System.Byte[] optionInValue, System.Byte[] optionOutValue) [0x00000] in <filename unknown>:0 
  at FirebirdSql.Data.Common.Extensions.SetKeepAlive (System.Net.Sockets.Socket socket, UInt64 time, UInt64 interval) [0x00000] in <filename unknown>:0 
  at FirebirdSql.Data.Client.Managed.Version10.GdsConnection.Connect () [0x00000] in <filename unknown>:0 
  at FirebirdSql.Data.FirebirdClient.ClientFactory.CreateManagedDatabase (FirebirdSql.Data.FirebirdClient.FbConnectionString options) [0x00000] in <filename unknown>:0 
  at FirebirdSql.Data.FirebirdClient.ClientFactory.CreateDatabase (FirebirdSql.Data.FirebirdClient.FbConnectionString options) [0x00000] in <filename unknown>:0 
  at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) FirebirdSql.Data.FirebirdClient.FbConnectionInternal:Connect ()
  at FirebirdSql.Data.FirebirdClient.FbConnectionPool.Create () [0x00000] in <filename unknown>:0 
  at FirebirdSql.Data.FirebirdClient.FbConnectionPool.CheckOut () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) FirebirdSql.Data.FirebirdClient.FbConnectionPool:CheckOut ()
  at FirebirdSql.Data.FirebirdClient.FbConnection.Open () [0x00000] in <filename unknown>:0 

I'm using the NETProvider-3.1.0.0-MONO_LINUX version of the provider (http://www.firebirdsql.org/en/net-provider/). Apparently this method is not yet implemented in Mono, but as I don't have the source code, do you have any idea of some workaround ? I'm pretty sure there must be one because if not, this provider made for mono is totaly useless and not tested... :(

4

1 回答 1

2

根据这篇文章,我通过使用驱动程序的先前版本(NETProvider-2.6.5-MONO_LINUX)找到了解决方案

有趣的是,有问题的驱动程序不再在 Firebird 官方网站上列出...无论如何,如果您有问题,请从 fb sourceforge 尝试这个:NETProvider-2.6.5-MONO_LINUX

于 2013-08-09T19:45:09.507 回答