This is possibly a duplicate of T328587
I have the following code
C#public JobTalkDbContext(string connectionString)
: base(connectionString)
{
if (Database.Exists())
{
var isCompatible = Database.CompatibleWithModel(false); //error occurs here
etc.
I get the following error
C#System.IO.FileNotFoundException occurred
FileName=DevExpress.Persistent.BaseImpl.EF.v15.1, Version=15.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
FusionLog==== Pre-bind state information ===
LOG: DisplayName = DevExpress.Persistent.BaseImpl.EF.v15.1, Version=15.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
(Fully-specified)
LOG: Appbase = file:///E:/EShared/Dev2015/SBD.JobTalk/SBD.JobTalk.Win/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : DevExpress.Data.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\EShared\Dev2015\SBD.JobTalk\SBD.JobTalk.Win\bin\Debug\SBD.JobTalk.Win.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: DevExpress.Persistent.BaseImpl.EF.v15.1, Version=15.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
HResult=-2147024894
Message=Could not load file or assembly 'DevExpress.Persistent.BaseImpl.EF.v15.1, Version=15.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The system cannot find the file specified.
Source=mscorlib
StackTrace:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
InnerException:
Here is CustomLogFile.Log from bin.Debug