Forum Discussion

surensaluka's avatar
surensaluka
Copper Contributor
Jan 20, 2023

VS 2022 + .NET Core 3.1 Web app can't debug under IIS profile

I receive the following error when trying to debug the .net core web app under the IIS profile.

 
 

 

launchSettings.json is as follows and the PC IP is correct. (192.168.31.107)

 

"cqrs" site is also created in IIS and with a separate app pool (CLR version: No managed code) The URL (http://192.168.31.107/cqrs/swagger/index.html) also works when typed into the browser. The only issue is when hit F5 from VS 2022 I get the popup error and can't debug.

Hope this info is enough for you to let me know how to fix this. Please don't hesitate to ask for more info, I'll be happy to provide it.

If I change the application URL to "http://localhost/cqrs" then the VS2022 lets me hit F5 and debug. But I want the web app to run with the IP, not with localhost.

I found a similar question and tried everything. Nothing works.

Thanks again.

Resources