Dependency injection frameworks are becoming a common place in all modern code bases. One of the most popular dependency injection framework in the .NET world is Ninject. This post will show a very simple example of how you can get started with Ninject. Check it out here: http://aspnetguru.com/how-to-use-ninject-in-asp-net-mvc-5-and-web-api-2/
Directory lookup for the file**** failed with the operating system error 2(The system cannot find the file specified.).\r\nCREATE DATABASE failed. Some file names listed could not be created. Check related errors."
I got this error recently while playing with EF code first.
This was my web.config, pointing to get to "|DataDirectory" which is "App_Data" folder in your solution.
But I forgot to create it before execution, so make sure u have App_Data set up already.