Tuesday 15 April 2014

asp.net - LightInject with Breeze Controller - Make sure that the controller has a parameterless public constructor -



asp.net - LightInject with Breeze Controller - Make sure that the controller has a parameterless public constructor -

i have installed lightinject.webapi alongside breeze.server.webapi2 using standard injection pattern lightinject examples , error stating must "make sure controller has parameterless public constructor" though when comment out breezecontroller annotation , utilize standard webapi route (with no other changes - injection logic same) injection works fine.

lightinject doesn't breeze route beingness set in preapplicationstartmethod.

move maphttproute registerbreezeprestart() within standard webapiconfig.register() method , breeze , lightinject should work together.

asp.net asp.net-web-api breeze asp.net-web-api2 light-inject

No comments:

Post a Comment