Christophe Gigax
Christophe Gigax

Reputation: 3470

ASP.NET vNext with EntityFramework.Core

In my ASP.NET vNext project I'm using 2 dependencies from Entity Framework 7, which are :

I want to use the beta2 release, and so I added a third dependency which is "EntityFramework.Core": "7.0.0-beta2". So I have :

But Visual Studio throw an error :

Error - CS0121 - The call is ambiguous between the following methods or properties: 'Microsoft.Framework.DependencyInjection.EntityServiceCollectionExtensions.AddEntityFramework(Microsoft.Framework.DependencyInjection.IServiceCollection, Microsoft.Framework.ConfigurationModel.IConfiguration)' and 'Microsoft.Framework.DependencyInjection.EntityServiceCollectionExtensions.AddEntityFramework(Microsoft.Framework.DependencyInjection.IServiceCollection, Microsoft.Framework.ConfigurationModel.IConfiguration)' - Startup.cs

Same error with CoreCLR ... Any ideas ?

Upvotes: 2

Views: 840

Answers (2)

dynamiclynk
dynamiclynk

Reputation: 2331

Yep same deal here updated through nuget all is well with that issue. The updates in my case were Microsoft.ASpNet.Server.IIS beta-1 to beta-5 and Microsoft.AspNet.Server.WebListener beta-1 to beta-4

Upvotes: 0

Christophe Gigax
Christophe Gigax

Reputation: 3470

Ok I found the solution : I changed all my beta1 dependencies to beta2 and it worked. I have another problem yet : the website doesn't show the Home page, I have a simple blank page ...

EDIT 2 : Sorry for the inconvenience, it seems that the dependency "Microsoft.VisualStudio.Web.BrowserLink.Loader" is still in beta1. It works now. Good luck ;)

Upvotes: 2

Related Questions