c# - XML error when trying to get all knowledge base articles (Kayako .NET API) -
c# - XML error when trying to get all knowledge base articles (Kayako .NET API) -
i'm trying implement kayako knowledge base of operations on client portal using .net api asp.net mvc framework, , i'm trying articles, looks in backend-class:
var articles = client.knowledgebase.getknowledgebasearticles();
when this, error says: "there error in xml-document (line, column)". i'm doing atm. getting tickets, users , departments work charm, know kayako client setup correctly. inner exception says:
"when converting string datetime, parse string take date before putting each variable datetime object."
and inner exception says:
"make sure method arguments in right format." has seen error?
i've looked xml-document error , seems have civilization during parsing of dates. live in sweden, don't know how handle since don't manually parse anything. method kayako api have no access actual code. want save articles knowledgebasearticlecollection list of knowledgebasearticle. can't find inner exception datetime parsing though. grabbing 1 article with:
client.knowledgebase.getknowledgebasearticle()
works should.
here's total exception:
system.invalidoperationexception unhandled user code hresult=-2146233079 message=det finns ett fel xml-dokumentet (1411, 2). source=system.xml stacktrace: vid system.xml.serialization.xmlserializer.deserialize(xmlreader xmlreader, string encodingstyle, xmldeserializationevents events) vid system.xml.serialization.xmlserializer.deserialize(textreader textreader) vid kayakorestapi.net.kayakoapirequest.processwebrequest[ttarget](webrequest request) vid kayakorestapi.net.kayakoapirequest.executecall[ttarget](string apimethod, string parameters, httpmethod httpmethod) vid kayakorestapi.net.kayakoapirequest.executeget[ttarget](string apimethod) vid kayakorestapi.controllers.knowledgebasecontroller.getknowledgebasearticles() vid domain.concrete.kayako.getcategoryarticles(int32 id) c:\martin\konica minolta\km-net\mainproject\domain\concrete\kayako.cs:rad 315 vid webui.controllers.homecontroller.index() c:\martin\konica minolta\km-net\mainproject\webui\controllers\homecontroller.cs:rad 21 vid lambda_method(closure , controllerbase , object[] ) vid system.web.mvc.actionmethoddispatcher.execute(controllerbase controller, object[] parameters) vid system.web.mvc.reflectedactiondescriptor.execute(controllercontext controllercontext, idictionary2 parameters) vid system.web.mvc.controlleractioninvoker.invokeactionmethod(controllercontext controllercontext, actiondescriptor actiondescriptor, idictionary
2 parameters) vid system.web.mvc.async.asynccontrolleractioninvoker.actioninvocation.invokesynchronousactionmethod() vid system.web.mvc.async.asynccontrolleractioninvoker.b__39(iasyncresult asyncresult, actioninvocation innerinvokestate) vid system.web.mvc.async.asyncresultwrapper.wrappedasyncresult2.callenddelegate(iasyncresult asyncresult) vid system.web.mvc.async.asyncresultwrapper.wrappedasyncresultbase
1.end() vid system.web.mvc.async.asyncresultwrapper.end[tresult](iasyncresult asyncresult, object tag) vid system.web.mvc.async.asynccontrolleractioninvoker.endinvokeactionmethod(iasyncresult asyncresult) vid system.web.mvc.async.asynccontrolleractioninvoker.asyncinvocationwithfilters.b__3d() vid system.web.mvc.async.asynccontrolleractioninvoker.asyncinvocationwithfilters.<>c__displayclass46.b__3f() innerexception: system.formatexception hresult=-2146233033 message=indatasträngen hade ett felaktigt format. source=mscorlib stacktrace: vid system.number.stringtonumber(string str, numberstyles options, numberbuffer& number, numberformatinfo info, boolean parsedecimal) vid system.number.parseint32(string s, numberstyles style, numberformatinfo info) vid system.xml.xmlconvert.toint32(string s) vid microsoft.xml.serialization.generatedassembly.xmlserializationreaderknowledgebasearticlecollection.read4_knowledgebasearticle(boolean isnullable, boolean checktype) vid microsoft.xml.serialization.generatedassembly.xmlserializationreaderknowledgebasearticlecollection.read5_kbarticles() innerexception:
i'm sorry if info isn't enough, allow me know if need else able solve issue. i'm quite new programming.
thanks in advance!
martin johansson
c# xml asp.net-mvc
Comments
Post a Comment