I'm trying to deploy an API on IIS. But no matter how I try to do it, I can't solve the following problem.
When I try to deploy asp.net core example api there is no problem with it. When I call an endpoint there are data.
If I try to deploy my api that uses a database I got an error.
The problem that I got when I try write an endpoint is:
I think it is a database permission problem. IIS settings are below
Connection string is below
"Local": "server=(localdb)\mssqllocaldb; database=eahworksafety;user id=eah;Password=eah;Integrated Security=false;"
MSSQL settings are below
I try to deploy an api locally on IIS webserver. I get an error when I try to reach an endpoint.