'Swapping to the Development environment displays detailed information about the error that occurred
I cloned this eShopOnWeb repo.
I successfully got it to run with dotnet cli.
But when I am trying to run on docker, I got into this issue.
I was able to build and run the app. But when I try to login, key in Email and Password, I get this error.
Error. An error occurred while processing your request. Development Mode Swapping to the Development environment displays detailed information about the error that occurred.
The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app.
What am I missing? I searched but could nor find any one talking about this with respect to docker.

Solution 1:[1]
The reasons was propbably because, you not create the database and apply migration
- normally the code made that itself. It was the case for Catalog but not yet for Identity database.
- I adapted to launch earlier the migrate database
- in docker the developer page and options was not available, i also adapted that
- The admin part in blazor only work in release mode (i not yet understand why).
The issue was now fixed and merge in the main branch.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Cedric Michel |
