deploy service to IIS instead of IIS express wich changes needed in launchSettings.json code example
Example: Run project in visual studio with iis express
In the solution folder view:
- Right click on your website/ web app
- Click on "Set as Startup Project"
- Configure as needed (IIS Local as default)