How to troubleshooting Construction Injection using Ninject
<p>I am having problem with construction injection fail. </p>

<p>When I call Restful API, the service return the message "An error occurred when trying to create a controller of type 'TasksController'. Make sure that the controller has a parameterless public constructor."</p>

<p>The cause of this issue is the Web API Controller can't construct the class because of wrong parameter in the constructor. </p>

<p>This is Ninject Configuration </p>

<pre><code>container.Bind&lt;IAddTaskQueryProcessor&gt;().To&lt;AddTaskQueryProcessor&gt;().InRequestScope();
container.Bind&lt;ITaskByIdQueryProcessor&gt;().To&lt;TaskByIdQueryProcessor&gt;().InRequestScope();
container.Bind&lt;IPagedDataRequestFactory&gt;().To&lt;PagedDataRequestFactory&gt;().InSingletonScope();
container.Bind&lt;IAllTasksInquiryProcessor&gt;().To&lt;AllTasksInquiryProcessor&gt;().InRequestScope();
</code></pre>

<p>This is a constructor of a class of a Controller. the parameters are injected when calling the constructor.</p>

<pre><code>public TasksController(IAddTaskMaintenanceProcessor addTaskMaintenanceProcessor, ITaskByIdInquiryProcessor taskByIdInquiryProcessor,
        IUpdateTaskMaintenanceProcessor updateTaskMaintenanceProcessor, 
        IPagedDataRequestFactory pagedDataRequestFactory,
        IAllTasksInquiryProcessor allTasksInquiryProcessor)
    {
        _addTaskMaintenanceProcessor = addTaskMaintenanceProcessor;
        _taskByIdInquiryProcessor = taskByIdInquiryProcessor;
        _updateTaskMaintenanceProcessor = updateTaskMaintenanceProcessor;
        _pagedDataRequestFactory = pagedDataRequestFactory;
        _allTasksInquiryProcessor = allTasksInquiryProcessor;
    }
</code></pre>

<p>[Environment]<br>
ASP.NET Web API 2.1<br>
NInject 3.2.2</p>

<p>How to check which parameter in a constructor is wrong?</p>