{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6220","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6220/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6220/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6220/events","html_url":"https://github.com/aspnet/EntityFramework/issues/6220","id":168740387,"number":6220,"title":"FileLoadException for System.Collections.Immutable & System.Interactive.Async dependency in csproj full framework","user":{"login":"mafshin","id":4930000,"avatar_url":"https://avatars.githubusercontent.com/u/4930000?v=3","gravatar_id":"","url":"https://api.github.com/users/mafshin","html_url":"https://github.com/mafshin","followers_url":"https://api.github.com/users/mafshin/followers","following_url":"https://api.github.com/users/mafshin/following{/other_user}","gists_url":"https://api.github.com/users/mafshin/gists{/gist_id}","starred_url":"https://api.github.com/users/mafshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mafshin/subscriptions","organizations_url":"https://api.github.com/users/mafshin/orgs","repos_url":"https://api.github.com/users/mafshin/repos","events_url":"https://api.github.com/users/mafshin/events{/privacy}","received_events_url":"https://api.github.com/users/mafshin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/type-investigation","name":"type-investigation","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"natemcmaster","id":2696087,"avatar_url":"https://avatars.githubusercontent.com/u/2696087?v=3","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false},"assignees":[{"login":"natemcmaster","id":2696087,"avatar_url":"https://avatars.githubusercontent.com/u/2696087?v=3","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/19","html_url":"https://github.com/aspnet/EntityFramework/milestones/1.1.0","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/19/labels","id":1748298,"number":19,"title":"1.1.0","description":"","creator":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"open_issues":123,"closed_issues":93,"state":"open","created_at":"2016-05-04T18:23:47Z","updated_at":"2016-08-02T22:45:35Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-08-01T20:57:12Z","updated_at":"2016-08-02T22:49:07Z","closed_at":null,"body":"### Steps to reproduce\r\n- Create a ASP.NET 4.6 Web API project\r\n- Create a data library project with EF Core\r\n- Add a code reference to the data library and access the context. This will force you to install `Microsoft.EntityFrameworCore` along with its dependencies\r\ne.g\r\n`  BookContext context = new BookContext();\r\nawait context.Database.EnsureCreatedAsync();`\r\n\r\n### The issue\r\nEF Core require System.Collections.Immutable 1.2 while the version installed by Web API is older. \r\n\r\nIf you try to uninstall EF Core and System.Collections.Immutable in WebAPI and reinstall it again via Nuget, the version of `System.Collections.Immutable` that installs will be 1.1.36.0 instead of 1.2.\r\nThe version that is listed in `packages.config` is 1.2 while the one that will be installed is 1.1.36.0\r\n\r\nI observed same kind of exception for `System.Interactive.Async` library.\r\n\r\n### Exception message:\r\n```\r\nCould not load file or assembly 'System.Collections.Immutable, Version=1.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\n```\r\n\r\n### Stack trace:\r\n```\r\n[FileLoadException: Could not load file or assembly 'System.Collections.Immutable, Version=1.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]\r\n   Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.RelationshipDiscoveryConvention.Apply(InternalEntityTypeBuilder entityTypeBuilder) +0\r\n   Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ConventionDispatcher.OnEntityTypeAdded(InternalEntityTypeBuilder entityTypeBuilder) +102\r\n   Microsoft.EntityFrameworkCore.Metadata.Internal.Model.AddEntityType(EntityType entityType, Boolean runConventions) +123\r\n   Microsoft.EntityFrameworkCore.Metadata.Internal.Model.AddEntityType(Type type, ConfigurationSource configurationSource, Boolean runConventions) +80\r\n   Microsoft.EntityFrameworkCore.Metadata.Internal.InternalModelBuilder.Entity(Type type, ConfigurationSource configurationSource, Boolean runConventions) +115\r\n   Microsoft.EntityFrameworkCore.ModelBuilder.Entity(Type type) +68\r\n   Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.FindSets(ModelBuilder modelBuilder, DbContext context) +92\r\n   Microsoft.EntityFrameworkCore.Infrastructure.Internal.RelationalModelSource.FindSets(ModelBuilder modelBuilder, DbContext context) +42\r\n   Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.CreateModel(DbContext context, IConventionSetBuilder conventionSetBuilder, IModelValidator validator) +148\r\n   Microsoft.EntityFrameworkCore.Infrastructure.<>c__DisplayClass14_0.<GetModel>b__0(Object k) +28\r\n   System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) +62\r\n   Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, IConventionSetBuilder conventionSetBuilder, IModelValidator validator) +130\r\n   Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel() +134\r\n   Microsoft.EntityFrameworkCore.Internal.LazyRef`1.get_Value() +17\r\n   Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model() +45\r\n   Microsoft.EntityFrameworkCore.Infrastructure.<>c.<AddEntityFramework>b__0_4(IServiceProvider p) +22\r\n   Microsoft.Extensions.DependencyInjection.ServiceLookup.FactoryService.Invoke(ServiceProvider provider) +13\r\n   Microsoft.Extensions.DependencyInjection.ScopedCallSite.Invoke(ServiceProvider provider) +92\r\n   Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite.Invoke(ServiceProvider provider) +87\r\n   Microsoft.Extensions.DependencyInjection.ScopedCallSite.Invoke(ServiceProvider provider) +92\r\n   Microsoft.Extensions.DependencyInjection.<>c__DisplayClass12_0.<RealizeService>b__0(ServiceProvider provider) +86\r\n   Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) +64\r\n   Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) +56\r\n   Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider) +60\r\n   Microsoft.EntityFrameworkCore.Storage.DatabaseProviderServices.GetService() +56\r\n   Microsoft.EntityFrameworkCore.Storage.Internal.SqliteDatabaseProviderServices.get_Creator() +26\r\n   Microsoft.EntityFrameworkCore.Infrastructure.<>c.<AddEntityFramework>b__0_11(IServiceProvider p) +30\r\n   Microsoft.Extensions.DependencyInjection.ServiceLookup.FactoryService.Invoke(ServiceProvider provider) +13\r\n   Microsoft.Extensions.DependencyInjection.ScopedCallSite.Invoke(ServiceProvider provider) +92\r\n   Microsoft.Extensions.DependencyInjection.<>c__DisplayClass12_0.<RealizeService>b__0(ServiceProvider provider) +86\r\n   Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) +64\r\n   Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService(IServiceProvider provider) +60\r\n   Microsoft.EntityFrameworkCore.Infrastructure.AccessorExtensions.GetService(IInfrastructure`1 accessor) +77\r\n   Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.EnsureCreatedAsync(CancellationToken cancellationToken) +13\r\n   WebApplication1.Controllers.<Index>d__0.MoveNext() in C:\\Users\\UserA\\Documents\\Visual Studio 2015\\Projects\\AsyncAssemblyLoadException\\WebApplication1\\WebApplication1\\Controllers\\HomeController.cs:19\r\n   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92\r\n   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58\r\n   System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult) +97\r\n   System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeAsynchronousActionMethod>b__36(IAsyncResult asyncResult) +17\r\n   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10\r\n   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49\r\n   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32\r\n   System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +50\r\n   System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +225\r\n   System.Web.Mvc.Async.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) +10\r\n   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10\r\n   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49\r\n   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34\r\n   System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +26\r\n   System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +100\r\n   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10\r\n   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49\r\n   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27\r\n   System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13\r\n   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29\r\n   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49\r\n   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36\r\n   System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +12\r\n   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22\r\n   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49\r\n   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26\r\n   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10\r\n   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21\r\n   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29\r\n   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49\r\n   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28\r\n   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9\r\n   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9644037\r\n   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155\r\n```\r\n\r\n### Further technical details\r\n\r\nEF Core version: 1.0.0\r\nOperating system: Windows 10 x64\r\nVisual Studio version: 2015 Update 3"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/237072734","html_url":"https://github.com/aspnet/EntityFramework/issues/6220#issuecomment-237072734","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6220","id":237072734,"user":{"login":"natemcmaster","id":2696087,"avatar_url":"https://avatars.githubusercontent.com/u/2696087?v=3","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T22:49:06Z","updated_at":"2016-08-02T22:49:06Z","body":"@mafshin this error is symptomatic of incorrect assembly bindings. Can you share the section of your **web.config** file that contains binding redirects? This will be under the configuration > runtime > assemblyBindings. NuGet tooling should automatically generate these correctly, but they can still get mixed up."}}
{"actor":{"display_login":"natemcmaster"}}