.net - XmlSerializerNamespaces is ambiguous in the namespace System.Xml.Serialization? -


anyone ever seen error? it's happening seemingly out of in .net 3.5 web app project instantiates namespaces object use in xml serialization. have cleaned , tried rebuild solution, checked , reset references system.xml. in code has not been touched in on year. project upgraded .net 3.5 has been through @ least 2 build cycles since upgrade without issue. ideas?

here guidance ms provides

some code:

    dim serializernamespaces new system.xml.serialization.xmlserializernamespaces()     serializernamespaces.add("xsi", "http://www.w3.org/2001/xmlschema-instance") 

this issue came again , thought i'd document here future reference. cause svcutil.exe used generate proxy wcf service call, , in doing created partial class in same .net namespace being used in class. in case partial class not being used commented out generated class , issue solved.

namespace system.xml.serialization  <system.diagnostics.debuggerstepthroughattribute(), _  system.codedom.compiler.generatedcodeattribute("system.runtime.serialization", "4.0.0.0"), _  system.runtime.serialization.datacontractattribute(name:="xmlserializernamespaces", [namespace]:="http://schemas.datacontract.org/2004/07/system.xml.serialization")> _ public class xmlserializernamespaces     inherits object     implements system.runtime.serialization.iextensibledataobject      private extensiondatafield system.runtime.serialization.extensiondataobject          public property extensiondata() system.runtime.serialization.extensiondataobject implements system.runtime.serialization.iextensibledataobject.extensiondata                             return me.extensiondatafield             end             set(byval value system.runtime.serialization.extensiondataobject)                 me.extensiondatafield = value             end set         end property     end class end namespace 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -