Skip to content

Entity Framework 6 - System.IO.FileNotFoundException in DatabaseFirst approach #1233

Closed
@datoml

Description

@datoml

Update: Solution for this at the end

I have two projects in my solution.
The first is an asp.net 5 WebApi Project, the second one is a .net 4.5.2 Class Library.

The second project is referenced with the output dll in the webapi project.
pic01

When I start the webapi and the db call is about to happen, I get this error:
"Die Datei "EntityFramework.resources" konnte nicht gefunden werden."
Translated:
"The file "EntityFramework.resources" couldn't be found."
pic02

Is this a known bug?
Thank you in advance.

Update:

I found a solution on stackoverflow.
http://stackoverflow.com/questions/34532188/why-cant-i-use-class-library-with-ef-6-1-3-from-asp-net-5-mvc-6-project

Don't forget to add the System.Data.SqlClient to you asp.net 5 references.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions