I have a Silverlight class library that is used by both the Silverlight application and the regular C # WCF service.
The Silverlight application calls the WCF service to read / write some data. They use a common library to control the transmitted data.
Everything compiles fine, but when we run the application, webservice produces the following error when calling the silverlight library:
"Failed to load file or assembly" System.Xml, Version = 2.0.5.0, Culture = neutral, PublicKeyToken = 7cec85d7bea7798e "or one of its dependencies. The system cannot find the specified file."
This is because the silverlight class library references v2.0.5 System.Xml, but the WCF service refers to v3.5 System.Xml.
Is there a way to reference both versions and not get an error?
source share