Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
Line 271 in UserService.cs errors out with below error:
// Await all tasks
await Task.WhenAll(rolesToAdd.Concat(rolesToRemove));
The HTTP status code of the response was not expected (500). Status: 500 Response: {"detail":"A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.","instance":"/api/users/8e7f3c92-4105-4198-ad57-0c4c5ddbc361/roles"}
When updating a user's role:
Line 271 in UserService.cs errors out with below error: // Await all tasks await Task.WhenAll(rolesToAdd.Concat(rolesToRemove));
The HTTP status code of the response was not expected (500). Status: 500 Response: {"detail":"A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.","instance":"/api/users/8e7f3c92-4105-4198-ad57-0c4c5ddbc361/roles"}