Logo 
Search:

Asp.net MVC Articles

Submit Article
Home » Articles » Asp.net MVC » Errors and SolutionRSS Feeds

The type 'System.Data.Objects.ObjectContext' is defined in an assembly that is not referenced

Posted By: Vivek Patel     Category: Asp.net MVC     Views: 8908

Error 1 The type 'System.Data.Objects.ObjectContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. D:\EDrive\New Websites\MyProjectDAL\Models\MyAppOrig1Context.cs 14 10 MyProjectDAL
 
Cause of Error: System.Data.Entity Assembly reference missing.
 
Solution:
1. Right Click Reference Folder
2. Add Reference
3. Select COM Tab
4. Add "System.Data.Entity" dll to your project
  
Share: 



Vivek Patel
Vivek Patel author of The type 'System.Data.Objects.ObjectContext' is defined in an assembly that is not referenced is from United States. Vivek Patel says

I have started working in .Net Technology since its beta release and lucky to got chance to work on .Net 1.1, 2.0 and now working on .Net 3.5. I have worked in both C# and VB.Net for Asp.net Projects. I can also provide Sharepoint development needs. I can efficiently switch role from Tech Lead and Developer. I have comprehensive knowledge of Asp.net Development. I have been award Microsoft Most Valuable Award twice in Asp.net Technology.

Blog: http://dotnetguts.blogspot.com

 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!