0
votes

Is there a way to resolve the below build error when doing xml serialization? I get the same error for System.Xml.XmlSerialization assembly.

No way to resolve conflict between "System.Runtime.Serialization, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" and "System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089". Choosing "System.Runtime.Serialization, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" arbitrarily.

1
You have 2 versions of a DLL 'available'. A misconfiguration in your project or on the target PC.Henk Holterman

1 Answers

0
votes

You might be using two or more versions of an assembly in the same application. To resolve this issue you need to make use of "Alias".

Check out this link to know abt alias.

Or, You can redirect an assembly binding reference to another version of an assembly by using entries in the application or machine configuration files using the <bindingRedirect>

http://msdn.microsoft.com/en-us/library/2fc472t2.aspx