Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

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

(0) ShareShare
ReportReport
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
    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
    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
    13 Moderator 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
    12,843 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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,459 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,066 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans