Native Exception in GetKeyInfo()
Posted By: Posted Date: October 08, 2010
Points: 0 Category :Sql Server
We developed a product on Win CE 5 using Visual Studio 2005. I am evaluating an upgrade to Visual Studio 2008 because we believe the SQL Server CE 3.5 database format is better supported.
We installed updates in platform builder to get SQL Server CE 3.5 and we rebuilt the platform. I have installed Visual Studio 2008 with SP1 for both .net and SQL Server CE.
I tried making an entirely new project with a fresh DB for testing, so that everything will agree and there won't be any strange faults lingering from settings in any old project. All the Properties sheets seems to indicate that my database is a 3.5 database. The project builds and deploys with no problems, but after the connection is open, any attempt to fill a table from the database results in this exception:
Exception Code: 0x80000002
Exception Address: 0x03194008
Faulting Module: sqlceme35.dll
at NativeMethods.GetKeyInfo( IntPtr pTx, String pwszBaseTable, IntPtr prgDbKeyInfo, Int32 cDbKeyInfo, IntPtr pError )
at SqlCeDataReader.FillMetaData( SqlCeCommand command )
at SqlCeCommand.InitializeDataReader( SqlCeDataReader reader, Int32 resultType )
The fault is happening in MS code that I cannot step into...anyone recognize this problem?
View Complete Post
More Related Resource Links