Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Database connection error only when I call await UserManager.GetUsersInRoleAsync("Manager")

$
0
0

Im building an app, where I want it to show a list of managers when you're going to register a new user, but i'm facing a pretty annoying problem:

My database connection it's working perfectly fine, I can register new users, login, but only when i call this line of code:

await UserManager.GetUsersInRoleAsync("Manager")

it returns me this error:

Microsoft.EntityFrameworkCore.Database.Connection[20004]  An error occurred using the connection to database 'teste' on server 'tcp:gustavo2004.database.windows.net,1433'.

I've tried to update the database, make a new migration, and it seems like really there is no problem with my database or my connection.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>