index > SQL Server Everywhere Edition > BadImageFormatException in tablet application

BadImageFormatException in tablet application

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?

Tom v E
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.
Tom v E
reply 2

You can use google to search for other answers

 

More Articles

• Any Movement on the 4 gig limit???
• sql server2005 and sql mobile DB (.sdf)
• a strange RDA problem
• SQL CE table creation with Mobile Query Analyzer help
• Newbie: "Sql mobile" or it is "Sql Server Everywhe...
• SQL Server Mobile 's cryptographic algorithm?
• What is SQL Everywhere?
• duplicated data display
• Access Database Synchronizer for SQL Express
• SQL Server 2005 Mobile: problem with connection to database
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• SQL Server Everywhere: 64-bit compatible?
• Sql Server 2005 Mobile/RDA connection pr
• ADO
• SQL Server mobile installation
• Cannot build SQL Server Mobile solution
• How does this, ResetDbType(), work
• Announcing SQL Server Everywhere Edition
• Inserting data from one table to another
• Help me!emergency!
• Sos..
• SQL Server CE Comparison
• Getting started with SQL Server Mobile
• access SQL2005 MOBILE database in a VS20
• query output as XML
• Beginner Q: Pocket PC access to SQL Serv

Hot Articles

• About SQL Mobile Server
• SqlCeResultSet - Problem After Deleting
• data application blocks for windows mobile
• SOS, please help
• Accessing SQL Mobile Databases in VB2005
• The path is not valid. Check the directo
• synchronize sql mobile (vs 2005) and sql
• Merge replication and SSL
• query output as XML
• Can someone clarify why only a single-st
• Has anyone noticed a size difference bet
• Help Please...request to send data to th
• Sql Server 2005 Mobile/RDA connection pr
• SQL Server CE and Memory Issue
• SQL Server 2005 Replication and views

Recommend Articles

• SQL Server Connection Error
• VS 2005 - VB.NET - Connect to mobile SQL
• A call to Sql reconciler failed.
• sql server mobile 2005 and emulated stor
• Isqlw for sql server mobile edition (sql
• Connecting SQL SERVER to SQL EVEREWHERE
• Replication error with sqlserver mobile:
• Must you use 3rd party certs for mobile
• ?Data transfer Pocket PC <--> Desk
• Determining if a SqlCeDataReader has ret
• Using Everywhere/Mobile from a service
• RE: SQL Mobile Get Started Tutorial
• genral network error on .net framework 1
• Unsupported HTTP function call was made
• Accessing from desktop - path not found.