Skip to content

Instantly share code, notes, and snippets.

View LyalinDotCom's full-sized avatar
:octocat:
A lot going on

Dmitry Lyalin LyalinDotCom

:octocat:
A lot going on
View GitHub Profile
@LyalinDotCom
LyalinDotCom / gist:f324a9371e8601ad682e5d5adcc257c0
Created August 9, 2018 05:27
FileNotFoundException from EntityFrameworkCore
System.IO.FileNotFoundException
HResult=0x80070002
Message=Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Source=Microsoft.EntityFrameworkCore
StackTrace:
at Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.CoreConventionSetBuilder.CreateConventionSet()
at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.CreateConventionSet(IConventionSetBuilder conventionSetBuilder)
at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.CreateModel(DbContext context, IConventionSetBuilder conventionSetBuilder, IModelValidator validator)
at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.<>c__DisplayClass5_0.<GetModel>b__1()
at System.Lazy`1.CreateValue()