• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1548
  • Last Modified:

Microsoft.Synchronization.Data.SqlServerCe.dll error

I am using .NET 3.5 in my windows application but I get the following error:

Assembly 'Microsoft.Synchronization.Data.SqlServerCe, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91' uses 'System.Data.SqlServerCe, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91' which has a higher version than referenced assembly 'System.Data.SqlServerCe, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91'

How do I resolve it?
  • 2
1 Solution
David Johnson, CD, MVPOwnerCommented:
Go into your projects Reference and add a new reference of your dll file which is causing the problem and make sure that all your dlls are compiled against the same version

metro156Author Commented:
My mistake I was removing
Microsoft.Synchronization.Data.SqlServerCe when I should of removed
System.Data.SqlServerCe and then replaced with  System.Data.SqlServerCe 3.5.1.

That was a stupid oops.
David Johnson, CD, MVPOwnerCommented:
We all make oops sometimes.. I've pored over code for hours until a team mate stopped buy to ask me if I wanted to go for coffee.  He glanced at the code and asked "why is this here?"
2 second glance and he found the bug. I bought him lunch!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now