Mono和Firebird:IOControl未实现

时间:2013-08-09 18:17:36

标签: mono firebird

我实际上正在开发一个项目,我需要在托管firebird数据库的linux服务器上托管.NET Web服务。当我尝试从http://www.mono-project.com/Firebird_Interbase运行示例代码并调用该方法时,我的webservice返回给我:

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 

我正在使用提供商的NETProvider-3.1.0.0-MONO_LINUX版本(http://www.firebirdsql.org/en/net-provider/)。 显然这个方法尚未在Mono中实现,但由于我没有源代码,您是否知道某些解决方法?我很确定必须有一个,因为如果没有,这个为单声道制作的提供者完全无用且没有经过测试...... :(

1 个答案:

答案 0 :(得分:2)

我使用基于this article

的驱动程序的先前版本(NETProvider-2.6.5-MONO_LINUX)找到了解决方案

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