Process-Automation-with-ASP.NET-Core-Microservices
Process-Automation-with-ASP.NET-Core-Microservices copied to clipboard
Cronjobs database fails for dealers microservice
If I try to navigate to page "Profile" on the website I get exception. After looking at the container's logs I found this error: Unhandled exception. Microsoft.Data.SqlClient.SqlException (0x80131904): Login failed for user 'sa'.
This comes when we try to dinamically create database - CarRentalDealersCronJobsDatabase:

Solution:
- Set Integrated Security=false explicitly in that connection string, this way we force user id and password to be used as default authentication. Source - https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnection.connectionstring?redirectedfrom=MSDN&view=dotnet-plat-ext-5.0#System_Data_SqlClient_SqlConnection_ConnectionString