One day after applying some Windows Updates i got following error:
Could not load file or assembly 'EntityFramework' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

After some hours of google research i found the solution. Somehow the update caused the Visual Studio to change the configuration entries in my web.config to
  <assemblies>
    <add assembly="System.Data.Entity, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <add assembly="System.Data.Entity.Design, Version=4.1.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  </assemblies>


In the compilation output was following line visible:
"Could not load file or assembly 'EntityFramework, Version=4.1.0.0"

The Solution - simply switch the EntityFramework version back to:
  <assemblies>
    <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  </assemblies>

Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (9 + 3) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 26.09.2009
Views: 1714
Item date: 03.01.2009
Views: 1200
Item date: 04.02.2009
Views: 1169
Item date: 16.06.2009
Views: 1717
Item date: 16.06.2009
Views: 1747
Item date: 04.02.2009
Views: 889
Item date: 11.04.2009
Views: 1385
Item date: 23.08.2009
Views: 1189
Item date: 24.08.2009
Views: 377
Item date: 14.05.2009
Views: 387