We just upgraded our applications from VS 2005 to VS 2008 and discovered we had to convert our SQL Server CE databases. So I did that. I then included the sqlce...35.dlls in the application directory on my test computer as well as the System.Data.SqlServerCe.dll version 3.5.
When I run the app and it tries to load the System.Data.SqlServerCe.dll I get the following error:
System.IO.FileLoadException: Could not load file or assembly 'System.Data.SqlServerCe, Version 184.108.40.206...or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
We have the application targeting the .NET Framework 2.0 and need to keep it that way for awhile.
Any ideas on how to resolve the error?
I've encounted the same problem some times .
These steps may be helpful for you .
1) If your references are located in the application folder, then make sure all the dlls are copied.
And confirm the version are same.(such as 220.127.116.11 or 18.104.22.168)
2) If the app.config file existed, check it . This file could redirect assembly references version at run time .
<assemblyIdentity name="System.Data.SqlServerCe" publicKeyToken="89845DCD8080CC91" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-22.214.171.124" newVersion="126.96.36.199"/>
3)If you still have no idea to solve this problem.I recommend you download DILE from sourceforge.net ,this good tool allow you see more debug informations .