Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EntityFramework package version="6.1.3" and Web config version 6.0.0.0?

I created a ASP.NET project which included EF 6.1.3

Its show package version="6.1.3" and in Web.config version 6.0.0.0

However in web.config i still have this:

section name="entityFramework" 
type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, 
EntityFramework, Version=6.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089" requirePermission="false"  

All other dependent assemblies are updated correctly.

Its gives an error on server

The type or namespace name 'Infrastructure' does not exist in the namespace 'System.Data.Entity

I thought this is due to version problem. Should I have updated this myself?

like image 487
Rohit Avatar asked Oct 05 '15 12:10

Rohit


1 Answers

Version 6.1.3 that you download through NuGet has an actual product version of 6.0.0, they are the same thing. See Microsoft Download Centre

Your error with namespace 'infrastructure' is discussed here and could just need a reference to System.Data.Entity.dll

like image 134
timbo Avatar answered Oct 09 '22 08:10

timbo