aspnetrun/run-aspnetcore-microservices

Login error when creating seed data (but only) when Ordering.API runs in Docker. Once manually created, it runs correctly

mehmetozkaya opened this issue · 0 comments

For some reason when I run the Ordering.API's GET command to retrieve the orders I getting the following error

.SqlException (0x80131904): Cannot open database "OrderDb" requested by the login. The login failed.

However, if I run the same code from Visual Studio targeting the same database, the database gets created with seed data with no problem. After that... once with the seed data created by the instance running with Visual Studio, if I switch back to the OrderingAPI running in Docker and run GET orders again then I do see the seed data.


workaround solution applied;
4886401


Need stable solution.