question

ZardWang-5765 avatar image
0 Votes"
ZardWang-5765 asked ZardWang-5765 commented

How to change the default browserwhen running the Asp.Net Core MVC with VS studio 2022?

It's only Edge in web browser list , can not show and add other browser.
And when I run the project, It prompts an error, can not find this file:"https://localhost:7191"

218133-image.png



dotnet-aspnet-core-mvc
image.png (8.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ZhiLv-MSFT avatar image
0 Votes"
ZhiLv-MSFT answered ZardWang-5765 commented

Hi @ZardWang-5765,

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:

218357-image.png

Then choose the Browse With... option, then you can add the browser to the browser list:

218330-image.png

After that you can change the debug browser via the Web Browser option.

218386-image.png

can not find this file:"https://localhost:7191"

About this issue, I suggest you can try the following steps:

  1. Since the request url is an https request, I assume you are debugging the application using Kestrel, like this:

    218411-image.png

    Then, you can change it to IIS express, then debug the application and use the Http request to test the web page.
    218349-image.png

  2. Try to download other browser, and then refer to the previous description to change the browser.

  3. 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.

Best regards,
Dillion


image.png (43.0 KiB)
image.png (12.8 KiB)
image.png (26.6 KiB)
image.png (128.7 KiB)
image.png (132.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for your help, I can not find [browser with..] in my list, I use the chinese language version. I reinstall again, also add the English Language package and it came out, I add the chrome as default browser, then project can run normally.

0 Votes 0 ·