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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -