servicestack - Service Stack XmlServiceClient null result in VS 2013 but works fine in VS 2012 -
when build project in vs 2012 following code works fine, when build in vs 2013 null objects on of calls.
any ideas why?
var client = new xmlserviceclient(apihost); client.localhttpwebrequestfilter += (request) => { request.headers.add("x-api-token", session["token"].tostring()); request.headers.add("x-api-key", session["key"].tostring()); request.headers.add("x-user-id", session["uid"].tostring()); }; var _order = client.get(new orderlookuprequest { id = 176352 }); var _orderitems = client.get(new orderitemlookuprequest { orderid = 176352 });
_order , _orderitems both null when built using vs2013.
i using:
using system; using system.collections.generic; using system.linq; using system.web; using system.web.mvc; using servicestack.serviceclient.web;
it version mismatch in application.
Comments
Post a Comment