web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

When running from Vs Code it points to an old server

(0) ShareShare
ReportReport
Posted on by 10

When I Publish and run from VS Code it is pointing to an old server, I had BC210 as a server name but added a new one BC220. All was working fine but now for some reason when publish and run it tries to open on old BC210 i.e.:

"">localhost:8080/.../

that should have BC220 in the URL

I checked the config and launch.json and searched the whole project for any reference to BC210 and nothing shows up. In fact I have searched for BC210 using windows explorer in both the vs Code workspace and also the "C:\Program Files\Microsoft Dynamics 365 Business Central" and there is no result for BC210 at all.

Does anyone know why this might happen, am thinking some caching going on that I need to clear perhaps?

Thanks

I have the same question (0)
  • Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

    Please check launch.json

    The below parameters should point to the correct server, instance and port number.

                                   "server":  "helloworld-current",

                                  "serverInstance":  "BC",

                                  "port":  7049,

  • Syvers Profile Picture
    10 on at

    Hi Mohana

    I had already checked that, even went as far as deleting launch.json and creating a new one in case it was cached somehow. I have searched the whole code for any mention of the old server instance and there is none so I have no idea why it is trying to use it.

    Thanks

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, really strange issue, just a possibility, have you set global and workspace launch configuration in your project?

    https://yzhums.com/32067/

    Hope this helps.

    Thanks.

    ZHU

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans