It appears that this extension does not work in Nancy 1.2 when a DI framework is leveraged.
Here is the detailed error when I use Ninject. If I use TinyIoCo -- I just get a general error.
Note: This occurs immediately after adding the Nuget package and running the app. I haven't even started enabling the library yet.
Any ideas?
Error activating ISerializer
More than one matching bindings are available.
Matching bindings:
1) binding from ISerializer to DefaultJsonSerializer
2) binding from ISerializer to DefaultXmlSerializer
Activation path:
3) Injection of dependency ISerializer into parameter serializer of constructor of type ErrorStatusCodeHandler
2) Injection of dependency IStatusCodeHandler into parameter statusCodeHandlers of constructor of type NancyEngine
1) Request for INancyEngine
Suggestions:
1) Ensure that you have defined a binding for ISerializer only once.
``
It appears that this extension does not work in Nancy 1.2 when a DI framework is leveraged.
Here is the detailed error when I use Ninject. If I use TinyIoCo -- I just get a general error.
Note: This occurs immediately after adding the Nuget package and running the app. I haven't even started enabling the library yet.
Any ideas?