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

Unable to create a 'DbContext' of type 'RuntimeType'. #1305

Open
asgharb opened this issue Mar 1, 2025 · 0 comments
Open

Unable to create a 'DbContext' of type 'RuntimeType'. #1305

asgharb opened this issue Mar 1, 2025 · 0 comments

Comments

@asgharb
Copy link

asgharb commented Mar 1, 2025

I encountered an error while creating the database.
E:\My Project\Clean\DournaCom\src\Infrastructure>dotnet ef database update Build started... Build succeeded. Unable to create a 'DbContext' of type 'RuntimeType'. The exception 'The configuration file 'appsettings.json' was not found and is not optional. The expected physical path was 'E:\My Project\Clean\DournaCom\src\Infrastructure\appsettings.json'.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728

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