I just deployed my first .NET Core web application. Everything was fine on a development environment with VS 2019 and IIS express but when I run the application on a production server (WIN2012) I got this error:
Application started. Press Ctrl+C to shut down. fail Microsoft.AspNetCore.Server.Kestrel[13] Connection id "0HLTB3NQ3M57Q", Request id "0HLTB3NQ3M57Q:00000001": An unhandled exception was thrown by the application. System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: Accesso non riuscito per l'utente 'XXX\SRV-XXX01$'.
where 'Accesso non riuscito per l'utente' is the Italian of 'Login failed' and XXX\SRV-01$ is the user attempting the login, made up of XXX is the domain name and SRV-01$ is the user name that is equal to the server name plus $.
Now the problem is that this user XXX\SRV-01$ is not defined anywhere in my project. It is not the user I have in my connection string. I tried to change the connection string but it looks like has no effect on this error.