Last post Jun 09, 2015 02:55 AM by Fei Han - MSFT
Jun 08, 2015 11:44 AM|bchernick|LINK
Not absolutely sure I have a problem here but...
I'm trying to do some basic MVC exercises. The tutorial, if I remember correctly, assumes that EF5 will be used. All I'm seeing in NuGet is version 6.1.3.
If I use that, it installs, compiles and runs without any apparent problem.
However I started running into problems in the next step of the exercise (connecting to a db) and the problem seemed to be in the web.config.
The 6.1.3 install added a section to the end of the web.config as follows.
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
My system does not seem to recognize the 'providers' tag. It seems to be expecting a 'contexts' tag.
Is this an install bug of some sort?
Jun 08, 2015 12:53 PM|ryanbesko|LINK
You can ignore this warning. Depending on the version of Visual Studio you have certain newer tags like <provider> won't be recognized. This will cause you no problems.
Jun 09, 2015 02:55 AM|Fei Han - MSFT|LINK
Thanks for your post.
As ryanbesko said, Visual Studio you are using may not recognize “providers” element, so it will show you a warning, but it will not cause any problem normally.
The element 'entityFramework' has invalid child element 'providers'