I am trying to use the FirebirdSql.Data.FirebirdClient.dll, v2.0.1 for
CompactEdition in a Windows Mobile 6.1 app.
coding in VS2008
using USA Windows Mobile 6.1 Classic Emulator. The emulator does display a IP
address (192.168.0.101) when I click on Configure Network Adapters, so I'm
assuming we have the network connectivity on the emulator configured properly.
Initially, I was getting this error with this connection string
User=[secureuser];Password=[securepwd];Database=C:\FocusApp\StockMgr\Data\Master.fdb;DataSource=FAOffice1;Port=3050;Dialect=3;Charset=ISO8859_1;Role=OFFICE;lifetime=15;Pooling=true;MinPoolSize=0;MaxPoolSize=50;Packet
Size=8192;ServerType=0
Message: No message for error code 335544721 found.
Stack: at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
at FirebirdSql.Data.FirebirdClient.FbConnectionPool.Create()
at FirebirdSql.Data.FirebirdClient.FbConnectionPool.CheckOut()
at FirebirdSql.Data.FirebirdClient.FbConnection.Open()
at InboundInventory.DAO.runquery(String query)
at InboundInventory.DAO.LoadTaxCodeFromDb(String squery)
at InboundInventory.frmInbndInventory.LoadTCFromDb(String squery)
at InboundInventory.TaxCodes.LoadTaxCodes()
at InboundInventory.frmInbndInventory..ctor()
at InboundInventory.Program.Main()
I changed the connection string to this:
User=[secureuser];Password=[securepwd];Database=C:\FocusApp\StockMgr\Data\Master.fdb;DataSource=192.168.0.100;Port=3050;Dialect=3;Charset=ISO8859_1;Role=OFFICE;lifetime=15;Pooling=true;MinPoolSize=0;MaxPoolSize=50;Packet
Size=8192;ServerType=0
Now I get this error:
Message: PlatformNotSupportedException
Stack: at System.Text.Encoding.GetDataItem()
at System.Text.CodePageEncoding..ctor(Int32 codepage)
at System.Text.Encoding.GetEncoding(Int32 codepage)
at System.Text.Encoding.GetEncoding(String name)
at FirebirdSql.Data.Common.Charset.GetEncoding()
at FirebirdSql.Data.Common.Charset.GetBytes(String s)
at FirebirdSql.Data.Client.Gds.XdrStream.Write(String value)
at FirebirdSql.Data.Client.Gds.GdsDatabase.Identify(String database)
at FirebirdSql.Data.Client.Gds.GdsDatabase.Attach(DatabaseParameterBuffer
dpb, String dataSource, Int32 port, String database)
at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
at FirebirdSql.Data.FirebirdClient.FbConnectionPool.Create()
at FirebirdSql.Data.FirebirdClient.FbConnectionPool.CheckOut()
at FirebirdSql.Data.FirebirdClient.FbConnection.Open()
at InboundInventory.DAO.runquery(String query)
at InboundInventory.DAO.LoadTaxCodeFromDb(String squery)
at InboundInventory.frmInbndInventory.LoadTCFromDb(String squery)
at InboundInventory.TaxCodes.LoadTaxCodes()
at InboundInventory.frmInbndInventory..ctor()
at InboundInventory.Program.Main()
the query I'm trying to run is real simple. 'SELECT * FROM PRTAXCODE'
This looks like a Microsoft exception.
So first question, are my connection strings correct for the compact edition?
Second question, is this a bug? any idea how to fix it?
E. D. Epperson Jr.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider