Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello.....

I am working on Compact Framework (c#) and SQL CE . if i run my compact framework application it showing error :

MSIL
System.IO.FileLoadException: Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'



Please


Thank You.....
Posted

The error message is quite clear, your application cannot load the System.Data.SqlServerCe assembly or one of its dependencies. I would:

1. Check if the version and key of the System.Data.SqlServerCe on your file system correspond with the given version and key.
2. If it does check which assembly (dependency of SqlServerCe) it cannot load. For example, by using Process Monitor.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900