I am following the Pro ASP.Net MVC5 book by Adam Freeman. I have created the sportsStore project as per the chapter 7. And after creating the project templates and adding the references, I build the project and try to debug it. I get this pop-up box
And if I click on cancel, I get the exception mentioned in the question. I am not able to figure this out. Any suggestions
I get the above error when I click on cancel.
Here is the call stack of the exception -
Ninject.dll!Ninject.Modules.AssemblyNameRetriever.GetAssemblyNames(System.Collections.Generic.IEnumerable<string> filenames, System.Predicate<System.Reflection.Assembly> filter) Line 54 C#
Ninject.dll!Ninject.Modules.CompiledModuleLoaderPlugin.LoadModules(System.Collections.Generic.IEnumerable<string> filenames) Line 81 C#
Ninject.dll!Ninject.Modules.ModuleLoader.LoadModules(System.Collections.Generic.IEnumerable<string> patterns) Line 54 C#
Ninject.dll!Ninject.KernelBase.Load(System.Collections.Generic.IEnumerable<string> filePatterns) Line 237 C#
Ninject.dll!Ninject.KernelBase.KernelBase(Ninject.Components.IComponentContainer components, Ninject.INinjectSettings settings, Ninject.Modules.INinjectModule[] modules) Line 100 C#
Ninject.dll!Ninject.KernelBase.KernelBase(Ninject.Modules.INinjectModule[] modules) Line 60 C#
Ninject.dll!Ninject.StandardKernel.StandardKernel(Ninject.Modules.INinjectModule[] modules) Line 48 C#
SportsStore.WebUI.dll!SportsStore.WebUI.App_Start.NinjectWebCommon.CreateKernel() Line 38 C# Ninject.Web.Common.dll!Ninject.Web.Common.Bootstrapper.Initialize(System.Func createKernelCallback) Line 50 C# SportsStore.WebUI.dll!SportsStore.WebUI.App_Start.NinjectWebCommon.Start() Line 23 C# [External Code] . I understand that the AssemblyNameRetriever class is missing and I did try to fix it by downloading it from github and using that class. But again it gives some exceptions. Shouldn't the Ninject take care of this class by itself.