A colleague developing for On-Prem Business Central using VS Code ran into an Authentication error downloading symbols. Although he provided his domain user and password the authentication failed.
Authorization has failed or the credentials have expired. The credential cache has been cleaned. Any access to reach Business Central would require new authorization.
Symptoms
- Business Central On-Prem installation on Domain Joined Server
- Authentication Windows
- Visual Studio Code installed on a non-domain joined Windows 11 client (WORKGROUP)
- Work Account (Azure AD / Entra ID User) logged on on in Windows 11
- Open URL in Browser asks for User + Password but works correctly

- AL: Download Symbols reports an error
Solution: RunAs
A workaround that solved the issue was to use the RunAs command and provide the domain user + password.
runas /user:AD_DOMAIN\AD_USER "C:\PATH_TO_VSCODE.EXE"
