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
NullReferenceException with Connection.GetSchema [DNET501] #485
Comments
Commented by: @cincuranet Try it with the latest version and report back. |
Commented by: Pavel (hellboy) But I use the last available build (2.5.2) for .NET Compact Framework! Date: 14.02.2010 16:44 |
Commented by: @cincuranet That's the latest build for CF. The latest version is 3.0.2. |
Commented by: Pavel (hellboy) Can I use 3.0.2 with Compact Framework? This issue is affected only for Compact Framework build, not for Full framework! |
Commented by: @cincuranet You'll have to build it yourself. Currently the project stopped creating CF builds. |
Commented by: Pavel (hellboy) I have compiled Version 2.6.0 myself. The main problem is that in FirebirdClient.dll for Compact Framework there is no FirebirdSql.Schema.FbMetaData.xml included as embedded resource!! FbSchemaFactory.cs: public static DataTable GetSchema(FbConnection connection, string collectionName, string[] restrictions): Stream xmlStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(ResName); // ResName = 'FirebirdSql.Schema.FbMetaData.xml', xmlStream is null DataRow[] collection = ds.Tables[DbMetaDataCollectionNames.MetaDataCollections].Select(filter); |
Commented by: Pavel (hellboy) Yes! Of course! In FirebirdClient for CompactFramework there are missing resources; // FirebirdSql.Entity.StoreSchemaDefinition.ssdl (Embedded, Public) // FirebirdSql.Entity.StoreSchemaMapping.msl (Embedded, Public) // FirebirdSql.Schema.FbMetaData.xml = System.IO.MemoryStream // FirebirdSql.Entity.ProviderManifest.xml = System.IO.MemoryStream Blocking bug after 3 years ;-) |
Commented by: @cincuranet I'm closing this ticket as CF builds are no longer produced. |
Submitted by: Pavel (hellboy)
I try to use GetSchema in FirebirdClient-NETCF-2.5.2:
command.Connection.GetSchema("Generators"); - NullReferenceException Exception
at FirebirdSql.Data.Schema.FbSchemaFactory.GetSchema(FbConnection connection, String collectionName, String[] restrictions)
at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.GetSchema(String collectionName, String[] restrictions)
at FirebirdSql.Data.FirebirdClient.FbConnection.GetSchema(String collectionName, String[] restrictions)
at FirebirdSql.Data.FirebirdClient.FbConnection.GetSchema(String collectionName)
// Also the same exception:
DataTable parmsDataTable = connection.GetSchema("procedurearameters", new string[] { null, null, spName });
return parmsDataTable.Rows.Count;
// Also the same exception:
FbCommandBuilder.DeriveParameters(command);
Tests runs on real device with WinCE 6.0
The text was updated successfully, but these errors were encountered: