Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Im new to the MVC technology.we are using Asp.net MVC4 with MySql database.Im accessing data using Entity Framework.While running the program it shows an error like.

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized element 'providers'.


And having a warning like

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


Any suggestions are accepted.
Posted
Updated 24-Dec-13 2:36am
v2

1 solution

I resolve this error by copying two files like
(1)EntityFrameworkCatalog.xml file
(2)EntityFrameworkConfig_6_0_0.xsd

from
https://entityframework.codeplex.com/SourceControl/latest#src/EFTools/setup/EFToolsMsi/XmlSchemas/EntityFrameworkCatalog.xml

and place those files in "C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas" folder.
At first download the entire zip file from above link.

From that extract the above two files(xml,xsd) from the below location
"src\EFTools\setup\EFToolsMsi\XmlSchemas". and copy to "C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas" .

Why because day by day software is updated.Because of that reason we have to work with updated softwares.

(or)

You can install the EF6 Designer for VS2012 from
" http://www.microsoft.com/en-us/download/details.aspx?id=40762"
and it will update the schema that validates config files.

Note: While doing this you have to close visual studio.After completing all process,You have to restart Visual Studio.
 
Share this answer
 
v2
Comments
Member 10412403 10-Sep-14 11:12am    
have done all the above but still have the error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900