web services - How to handle .Net XML serialization exception? -
web services - How to handle .Net XML serialization exception? -
i working on project utilizes .net api (several .net dlls) provided customer. have built application based on api. application works expected on machines. when tried deploying on client’s machine fails rather generic exception. tried googling exception nil conclusive found.
to give rough thought api, wraps web service consumer , hence requires marshaling of method parameters xml (no source code available this). next stack trace exception:-
system.invalidoperationexception: there error generating xml document. ---> system.argumentexception: string cannot have 0 length. @ microsoft.xml.serialization.generatedassembly.xmlserializationwriterstreaminformation.write5_streaminformation(object o) --- end of inner exception stack trace --- @ system.xml.serialization.xmlserializer.serialize(xmlwriter xmlwriter, object o, xmlserializernamespaces namespaces, string encodingstyle, string id) @ system.xml.serialization.xmlserializer.serialize(textwriter textwriter, object o, xmlserializernamespaces namespaces) @ microsoft.sqlserver.datawarehouse.loader.stringserializer`1.serialize(tserializable instance) at microsoft.sqlserver.datawarehouse.loader.loaderclient.beginexecutebinary(asynccallback endloadcallback, asynccallback startsendingdatacallback, object state) > @ microsoft.sqlserver.datawarehouse.loader.aabinloaderclient.cofingdoload(string[] configvals)
frame in italic represents our application while frame in bold represents client's api if has encountered exception in past , know workaround please allow me know.
i have come across kind of error when trying parse xml. mutual place have seen "string cannot have 0 length" error when trying find particular place within string. know if api using xml namespace?
without seeing code hard provide detailed analysis of problem.
.net web-services
Comments
Post a Comment