I am a learning Xamarin
and I wanted to use Ninject
for IoC
containers and dependency injection. I added Ninject 3.3.4
using NuGet
package on Visual studio 2017
community. I receive error on the following line of code in my App.Xaml.cs:
Kernel = new StandardKernel(new TripLogCoreModule(), new TripLogNavModule(mainPage.Navigation));
I receive following error:
Ninject StandardKernel System.ArgumentNullException: value cannot be null. Parameter name: path1
I spent about 2 hours on the internet and couldn't find a solution to my problem.
Finally, I found the oversight that I made, so I thought to post this question and answer my own question, in case someone else (newbie like me) make this mistake.