I created an api in .net core 3.1 with Sql Server 2014 as backend. Its working good on local but after hosting its giving me error "SqlException: Cannot open database "stateElection" requested by the login. The login failed.
Login failed for user 'IIS APPPOOL\jwttoken'."