Does anybody out there know how to use Ninject with a WCF webHttp Service created using the WCF REST Service Template Extension? My project is using Ninject extensively and I want to implement a RESTful service, and as the new WCF Web API is not officially production ready I am left with the WCF REST Service Templates.
I have tried doing it the default way using the Ninject WCF extension from Nuget and having my Global.asax implement NinjectWcfApplication. I then load create the StandardKernal passing in my Ninject Service Module.
Unfortunatly I still end up with the error message due to nothing being injected.
The service type provided could not be loaded as a service because it does not have a default (parameter-less) constructor. To fix the problem, add a default constructor to the type, or pass an instance of the type to the host.
I have also followed this article here without any luck.
Any help on this one greatly appreciated.
See https://github.com/cbertolasio/ninject.extensions.wcf This will be integrated into the WCF extension master soon.