Update: The assembly reference to System.Data.Entity is selected in the Reference Manager.
I get an error when trying to run an out-of-the-box ASP.NET MVC 3 Web Application. I made no modifications.
I simply chose File > New Project > Visual C# > ASP.NET MVC 3 Web Application and left all the default settings intact.
Under Project Settings, I chose Internet Application for the template, Razor for the view engine, and checked Use HTML5 semantic markup.
I then immediately chose Build > Build Solution which fails and produces this error and five other warnings (shown in the screenshot).
Error 1 The type or namespace name 'Infrastructure' does not exist in the namespace 'System.Data.Entity' (are you missing an assembly reference?)
C:\Users\johndoe\Documents\Visual Studio 2012\Projects\MvcApplication1\MvcApplication1\Global.asax.cs
...this question has been asked — many times — but the answers on those posts do not provide adequate information to solve my problem.
Please, be specific in your response, with step-by-step instructions, as I am new to Visual Studio and its MVC app development framework.
What would cause Visual Studio not to work right out-of-the-box? This is a fresh install. Is there an update that could have caused this issue or could fix this issue?
Microsoft Visual Studio Ultimate 2012 Version 11.0.61030.00 Update 4
Microsoft .NET Framework Version 4.5.50709
Installed products:
I had the same problem and resolved it by adding a reference to Entity Framework. This is done by right clicking "Reference" in Solution Explorer and selecting "Add Referece" Next browse to C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE. Choose EntityFramework.dll.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With