Thursday, 23 July 2015

Web: How to resolve Warning : The element 'entityFramework' has invalid child element 'providers'. List of possible elements expected: 'contexts'

Error:

The element 'entityFramework' has invalid child element 'providers'. List of possible elements expected: 'contexts'

<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>


Solution:
Install Entity Framework 6 Designer for VS2012 to update the schema that validates the config files.

http://www.microsoft.com/en-us/download/details.aspx?id=40762

No comments:

Post a Comment