最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

VSCode AL: Download Symbols Authorization has failed

D365fO William 3浏览 0评论

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"
Download Symbols Successful

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址