Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile: Metadata file 'EntityFramework.dll' could not be found #2

Open
lf-novelt opened this issue Aug 14, 2019 · 0 comments

Comments

@lf-novelt
Copy link

lf-novelt commented Aug 14, 2019

Hello, thanks for the lib, I am trying to use it but face a blocking issue.

Error `System.Exception: Failed to compile: Metadata file 'EntityFramework.dll' could not be found
↵   at DynamicOData.QueryFactory.Compile(Table table)`

Line that throw the exception

parameters.ReferencedAssemblies.Add("EntityFramework.dll");

Possible solution

By default, EntityFramework.dll is not in the GAC, so this line should be

parameters.ReferencedAssemblies.Add(Directory.GetCurrentDirectory() + "\\EntityFramework.dll");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant