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
Hi, really strange issue, just a possibility, have you set global and workspace launch configuration in your project?
Hope this helps.
Thanks.
ZHU
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
Please check launch.json
The below parameters should point to the correct server, instance and port number.
"server": "helloworld-current",
"serverInstance": "BC",
"port": 7049,
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156