An exception of type 'System.IO.FileLoadException' occurred in Ninject.dll but was not handled in user code <p>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<img src="https://i.stack.imgur.com/lzBhv.png" alt="enter image description here"></p> <p>And if I click on cancel, I get the exception mentioned in the question. I am not able to figure this out. Any suggestions</p> <p><img src="https://i.stack.imgur.com/T2ONA.png" alt="enter image description here"></p> <p>I get the above error when I click on cancel.</p> <p>Here is the call stack of the exception - </p> <pre><code>Ninject.dll!Ninject.Modules.AssemblyNameRetriever.GetAssemblyNames(System.Collections.Generic.IEnumerable&lt;string&gt; filenames, System.Predicate&lt;System.Reflection.Assembly&gt; filter) Line 54 C# Ninject.dll!Ninject.Modules.CompiledModuleLoaderPlugin.LoadModules(System.Collections.Generic.IEnumerable&lt;string&gt; filenames) Line 81 C# Ninject.dll!Ninject.Modules.ModuleLoader.LoadModules(System.Collections.Generic.IEnumerable&lt;string&gt; patterns) Line 54 C# Ninject.dll!Ninject.KernelBase.Load(System.Collections.Generic.IEnumerable&lt;string&gt; 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# </code></pre> <blockquote> <p>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. </p> </blockquote>