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 22.214.171.124, 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 126.96.36.199 .... 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 188.8.131.52 version.
How can I fix this error?