Hi @Zard Wang ,
How to change the default browserwhen running the Asp.Net Core MVC with VS studio 2022?
You can refer to the following steps to add/remove browser:
Click the small drop down menu arrow beside the debug toolbar menu:
Then choose the Browse With... option, then you can add the browser to the browser list:
After that you can change the debug browser via the Web Browser option.
can not find this file:"https://localhost:7191"
About this issue, I suggest you can try the following steps:
- Try to debug your application via IIS express. Since the request url is an https request, I assume you are debugging the application using Kestrel, like this: Then, you can change it to IIS express, then debug the application and use the Http request to test the web page.
- Try to download other browser, and then refer to the previous description to change the browser.
- Try to create a new project and test whether it works or not. If not perhaps the issue relates the VS 2022, try to repair it or reinstall it.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.