Exception thrown while attempting to evaluate the LINQ query parameter expression 'value(Finbuckle.MultiTenant.EntityFrameworkCore.FinbuckleEntityTypeBuilderExtensions+ExpressionVariableScope).Context.TenantInfo' #915
Unanswered
MarcoGaribaldi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
hope someone can help me with the following problem. I am working on an app where the backend is based on the dotnet-webapi-starter-kit. When the application starts and the ApplicationDbSeeder class is executed, I get an error in the SeedRolesAsync method when the following code is executed
This is the error I get:
"An exception was thrown while attempting to evaluate the LINQ query parameter expression 'value(Finbuckle.MultiTenant.EntityFrameworkCore.FinbuckleEntityTypeBuilderExtensions+ExpressionVariableScope).Context.TenantInfo'. See the inner exception for more information."
The inner exception is:
"Object reference not set to an instance of an object."
Finbuckle is configured this way:
I have noticed that the same error happens whenever LINQ code is executed. As an example, SeedRolesAsync is called by the following method
If I comment out SeedRolesAsync the same error happens in the SeedAdminUserAsync method when this line is executed
The same happens if I do the following
Any idea on what may be the problem?
Beta Was this translation helpful? Give feedback.
All reactions