0

I'm getting this error when I add EntityFramework to my project .

TypeLoadException: Could not load type 'CultureAwaiter' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Microsoft.AspNet.Diagnostics.Entity.DatabaseErrorPageMiddleware.Invoke(HttpContext context) Microsoft.AspNet.Diagnostics.ErrorPageMiddleware.d__1.MoveNext()

F Andrei
  • 668
  • 2
  • 9
  • 24
  • Take a look at this question http://stackoverflow.com/questions/25723533/linqkit-predicate-builder-throws-typeloadexception and see if the answer is applicable to your situation. – user700390 Mar 26 '15 at 17:57
  • I don't use entity framework in another project from my solution . I get this error on every page of my website even though i dont use Entity framework in my code yet . – F Andrei Mar 26 '15 at 18:00
  • TypeLoadException: Could not load type 'CultureAwaiter' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Microsoft.AspNet.Diagnostics.Entity.DatabaseErrorPageMiddleware.Invoke(HttpContext context) Microsoft.AspNet.Diagnostics.ErrorPageMiddleware.d__1.MoveNext() – F Andrei Mar 26 '15 at 18:02
  • Can you please share the `project.json` file? – Victor Hurdugaci Mar 26 '15 at 20:18
  • project.json : http://pastebin.com/uEXV3vam – F Andrei Mar 27 '15 at 13:02
  • @VictorHurdugaci I Posted project.json . Can you take a look ? – F Andrei Mar 27 '15 at 16:52
  • Where did you post it? – Victor Hurdugaci Mar 27 '15 at 17:21
  • @VictorHurdugaci Here: http://pastebin.com/uEXV3vam – F Andrei Mar 28 '15 at 18:34
  • You are using the `beta1` bits which are very old (probably 1 year old). Please update to `beta3` and see if you get the same error. Also, make sure that KRE/DNX matches the packages version. – Victor Hurdugaci Mar 29 '15 at 16:02
  • I only have beta1 KRE available in project properties and if I install beta3 from nuget, it's not displayed as Target KRE Version . – F Andrei Mar 30 '15 at 11:01
  • I managed to install new KRE following this guid : https://cmatskas.com/asp-net-5-vnext-from-the-command-line/ . However, I had to manually copy kre-clr-win-x86.1.0.0-beta3 from C:\Users\Admin\.k\runtimes to C:\Users\Admin\.kre\packages afterwards . I'm installing entity framework now to give it a try . – F Andrei Mar 30 '15 at 11:21
  • Actually it's not working . I get this error "Cannot find runtime package 'kre-clr-x86.-win-x86.1.0.0-beta3'. Please install the package using 'kvm install' " . kvm install command doesnt work either ... i get an error 400 Bad request – F Andrei Mar 30 '15 at 12:01

0 Answers0