Forum Discussion
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.
- LanHuangMicrosoft
Hi surensaluka ,
Thanks for posting your issue here.
However this platform is used for how-to discussions and sharing best practices for building any app with .NET.Since your issue is a technical question, welcome to post it in Microsoft Q&A forum, the support team and communities on Microsoft Q&A will help you for any technical questions.
Besides, it will be appreciated if you can share it here once you post this technical question Microsoft Q&A.
Best Regards,
Lan Huang- surensalukaCopper ContributorHi, I have already post it. Sorry for the mistake.
https://learn.microsoft.com/en-us/answers/questions/1251129/vs-2022-net-core-3-1-web-app-cant-debug-under-iis
- cryphos_negativeCopper ContributorReplycore are core based in asynchronous development without ending event driven as topology, in simultaneous development as ARTET.
http://cryphosnegative.blogspot.com/