LINQPad 4 Cannot Find EntityFramework

I am trying to use LINQPad 4 (latest beta) with POCO Entity Framework classes. I take the usual way to create a new connection, and then select the Entity Framework DbContext POCO (4.1), and then select my assembly containing my classes. When I do this, I get the following message

"Failed to load the file or assembly EntityFramework. Version = 4.1.OO, Culture = neutral, PublicKeyToken = b77a5c561934e089 or one of its dependencies.

The system cannot find the specified file. "

I can download the assembly from my application just fine. What gives? This is slightly different from the previous problem, as described in CTP.

+4
source share
1 answer

I had the same problem today, here is how I solved it:

LINQPad 4.36.3 seems to require Entity Framework 4.2 in some way: /
It was released last week: ADO.NET Blog

What I've done:

  • Installed EF4.2 via NuGet
  • Restored Project
  • I copied all my project DLLs to the LINQPad folder (including 4.2 EF.dll).
  • I read here that I need to add something to the LINQPad.exe.config file, but it was already there.
    [At this point, I tried to remove the assembly redirection and run it against my dll 4.1, did not work, still searched 4.2]
  • Closed VS and deleted EF4.1

So, after that, my project now works on 4.2, and LINQPad works.

+7
source

Source: https://habr.com/ru/post/1379675/


All Articles