Entity Framework 4.2 Beta 1 Released with Bug Fix - The given assembly name or codebase was invalid

The Entity Framework 4.1 Update announced in July contained a bug that affected third party EF providers using a generic class for their provider factory implementation. A FileLoadException occurred with the message “The given assembly name or codebase was invalid”. Microsoft recently announced EF 4.2 Beta 1 which fixes this bug.

To refresh your memory, with EF 4.1 Update 1 there’s no need to specify ‘Persist Security Info=True’ in the connection string when using SQL authentication for Code First development. New types DbContextInfo and IDbContextFactory<TContext> have been added to make it easier to interact with DbContexts.

You can download this update using the EntityFramework.Preview package.

If you are interested in developing data apps using Entity Framework, make sure you read my article series Learn ADO.NET Entity Framework 4 – Free Tutorials

Will you give this article a +1 ? Thanks in advance

About The Author

Suprotim Agarwal
Suprotim Agarwal, ASP.NET Architecture MVP (Microsoft Most Valuable Professional) works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He is the Editor of a Developer Magazine called DNC Magazine. He has also written two EBooks 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook

Follow him on twitter @suprotimagarwal

No comments: