Category Archives: Entity Framework

ASP.NET+MVC+Entity Framework Error – CS0012: The type ‘System.Data.Objects.DataClasses.EntityObject’ is defined in an assembly that is not referenced. You must add a reference to assembly System.Data.Entity

I created a blank MVC4 site in which I tried consuming a WCF. Data was returned from WCF and available in MVC controller but when I was trying to use the data in MVC View using model; I was left … Continue reading

Posted in Entity Framework, Knowledge Sharing, MVC, Troubleshooting | Leave a comment

MVC4 error- Unable to complete operation. The supplied SqlConnection does not specify an initial catalog

I was trying to do my hands dirty today with MVC4. I was following MvcMovieStore example. Following everything correctly till “Accessing Your Model’s Data from a Controller”, i was stuck with this error. Struggling to this i found that by … Continue reading

Posted in ASP.NET, Entity Framework, Knowledge Sharing, MVC, Troubleshooting | Comments Off