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

Announcements

News and Announcements icon
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,218 Super User 2026 Season 1 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
    101,995 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,081 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,351 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,168 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans