Updating Silverlight enabled WCF service cannot find System.Runtime.Serialization
Posted on 2011-03-23
I have a Silverlight Class Library that contains my objects. I have added a reference to System.Runtime.Serialization to this project. It's version 220.127.116.11, Runtime Version v2.0.50727, File version 4.0.50826.0.
My portal project contains a service that exposes the object in the class library.
When I try to update the service reference in my Silverlight Application it gives me the following error:
Could not load file or assembly "System.Runtime.Serialization, Version 18.104.22.168 .... or one of it's dependencies. The system cannot file the file specified.
It worked fine before I added the reference for System.Runtime.Serialization.
My Portal project does not reference System.Runtime.Serialization, but other assemblies that are exposed by the same service due. Some of them are not Silverlight class libraries so they reference the .Net Version 22.214.171.124 version.
How can I fix this error?