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=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' uses 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' which has a higher version than referenced assembly 'System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'

How do I resolve it?
Lawrence AverySystem DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

http://stackoverflow.com/questions/9219832/error-cs1705-which-has-a-higher-version-than-referenced-assembly
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lawrence AverySystem DeveloperAuthor 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.
0
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!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.