Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Answered

How to change the default browser when running a runnable class in AX

Posted on by

Hello,

Does anyone know how to change the default browser when debug a runnable class in AX in Visual Studio 2019?

(My default browser in my system is Chrome.)

I tried to run a runnable class in Visual studio 2019, such as the simplest code below.

internal final class Test
{
    public static void main(Args _args)
    {
        info("Hello AX");
    }

}

The problem is that, when I run the class (already set the class as startup object), the default browser is always Internet Explorer.

Furthermore, the Internet Explorer cannot support the running process, and will display an error message below.

pastedimage1662644618037v1.png

If I clicked "Leave this page", the web will show like this.

pastedimage1662644871834v3.png

If I clicked the "Stay on this page", the web will show like this.

pastedimage1662644733110v2.png

Can anyone provide some suggestions for me?

Thank you.

Warm regards.

Kai Cheng

  • Kai Cheng Profile Picture
    Kai Cheng on at
    RE: How to change the default browser when running a runnable class in AX

    Hi Nano,

    Thank you so much. That's what I need!

    I searched it on the Internet for hours, but haven' t find the answer which can solve my problem.

    It's so nice to see your reply.

    Thank you again.

    Warm regards.

    Kai Cheng

  • Kai Cheng Profile Picture
    Kai Cheng on at
    RE: How to change the default browser when running a runnable class in AX

    Hi Komi,

    Thank you for reply.

    I already set chrome as my default web browser, and the problem is I want to change the default browser when debugging in Visual Studio.

    Nuno gave me the answer I need.

    Thank you for your kindness.

    Warm regards,

    Kai Cheng

  • Suggested answer
    nunomaia Profile Picture
    nunomaia 10,684 Super User 2024 Season 1 on at
    RE: How to change the default browser when running a runnable class in AX

    Try to change in debug settings of Visual Studio. Screenshot of settings 

    pastedimage1662647813002v1.png

  • Komi Siabi Profile Picture
    Komi Siabi 12,692 Most Valuable Professional on at
    RE: How to change the default browser when running a runnable class in AX

    On your VM, change the default browser.

    Windows Key - > Default apps -> Web browser

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans