I have this strange error when trying to execute a function in a referenced assembly. I have the source code for the assembly and there is NO namespace called "XmlSerializers", so I can't for the life of me understand why its trying to load 'Netaccounts.Ola.RestClient.XmlSerializers'
Can anyone suggest where to begin troubleshooting this problem? I think something is wrong with .Net framework or visual studio because this makes no sense to me at all.
It happens on this line
XmlSerializer serializer = new XmlSerializer(type);
but XmlSerializer is coming from System.Xml.Serialization. I even rewrite the code as such, but no effect. I get the same error.
System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(type);
Cheers!
BindingFailure occurred
Message: Managed Debugging Assistant 'BindingFailure' has detected a problem in 'D:\Local Dev Projects\Projects\WRJ Studio\WRE Quote Builder\bin\Debug\WRJ Studio.vshost.exe'.
Additional information: The assembly with display name 'Netaccounts.Ola.RestClient.XmlSerializers' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'Netaccounts.Ola.RestClient.XmlSerializers, Version=1.0.5101.5654, Culture=neutral, PublicKeyToken=1809573d4ad081b2' or one of its dependencies. The system cannot find the file specified.