I have a asp.net mvc 2 on .net 4 with code first entity framework data access.
When I deploy to one server it works beautifully, no prizes for guessing it doesnt work on the other…the message however I cannot understand
Attempt by method ‘System.Data.Entity.ModelConfiguration.Internal.Configuration.CodeFirstCachedMetadataWorkspace.GetProviderInvariantName(System.Data.Common.DbConnection)’ to access method ‘System.Data.Common.DbProviderServices.GetProviderFactory(System.Data.Common.DbConnection)’ failed.
I updated .net 4 from 4.0.2**** to 4.0.3***
that fixed it