I'm currently developing a tablet application which uses SQL Mobile 2005.
I added the reference to the System.Data.SqlServerCe DLL and copied all the necessary DLLs of the SQL Mobile SDK (from the Program Files\Microsoft SQL Sevrver 2005 Mobile Edition\Device\Mobile\v3.0\tablet directory) to my output directory.
But when my code hits the first SQL Mobile related line:
SqlCeEngine dbEngine = new SqlCeEngine();
I get an BadImageFormatException. This happens both on the Tablet and my development machine. I already reinstalled the SQL Mobile 2005 Device SDK, both nothing changed after that.
Any ideas why this fails? Is it a bug in the System.Data.SqlServerCe DLL or the SDK?
I fixed this issue myself. Apparently I needed to copy the DLLs from Program Files\Microsoft Visual Studio 8\Common7\IDE, opposed to the directory mentioned in my first post.
No comments:
Post a Comment