I have a Silverlight Class Library that is being used by both Silverlight application and a regular C# WCF Service.
The Silverlight application calls the WCF service to read/write some data. They both use the common library to manipulate the data being passed.
Everything compiles fine, but when we run the application, the webservice throws the following error when the call to the silverlight library is made:
"Could not 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 file specified."
This is because the silverlight class library is referencing v2.0.5 of System.Xml, but the WCF Service is referencing v3.5 of System.Xml.
Is there a way I can reference both versions and not get the error?