Saturday, August 4, 2012

Entity Framework ,Linq to Sql Issues & Solutions

Error

The type ‘System.Data.Objects.DataClasses.EntityObject’ is defined in an assembly that is not referenced

Solution:.

Entity Framework bug can be resolved by simply add refrence to the solution file.the refence we need to add is  "System.Data.Entity ".Apply by right Click on the solution file


Error

The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.

Solution

The Above has been found in entity framwork .To reolve this error simply copy your connectionstring from one solution to Main web config File.The error occur when we run multiple projects wihtin a project.The solution enable to read the entity connection properly.this could be resolve by the defined way