I've built a Blazor application, but when we deployed it into a Testing environment, I received the following error:
An exception occurred while iterating over the results of a query forcontext type'TestApp.Data.DBContext.LookupDbContext'.
Microsoft.Data.SqlClient.SqlException (0x80131904): Login failed foruser 'NT AUTHORITY\ANONYMOUS LOGON'.
But I'm not entirely sure why it is attempting to send in NT AUTHORITY\ANONYMOUS LOGON when my connection string contains a User ID field.
"DefaultConnection": "Server=testServer;InitialCatalog=TestDatabase;UserID=user;Password=password;Encrypt=False;Trusted_Connection=True;"
When I was debugging and using the application locally, I never experienced this error, and my connection string was the same.