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

Visual Studio Code - AL - Cannot download Symbol - On Premise

(0) ShareShare
ReportReport
Posted on by 307

I tried connect Visual Studio Code to my ERP hosted on my server. It was not successful when I download the Symbol

Error:

"

Authorization has failed or the credentials have expired. The credential cache has been cleaned. Any access to reach Business Central would require new authorization."
pastedimage1658164662372v2.png
I can access the URL of dev port:
pastedimage1658164815435v4.png
I cleared the cache, but it did not solve
pastedimage1658164924664v5.png
Where did I configure wrong ?
Thanks.
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    101,995 Super User 2026 Season 1 on at

    Hi, Some settings are required when linking On-Pre environments. Please check the following.

    pastedimage1658190886982v1.png

    pastedimage1658190921930v2.png

    And most importantly, the port below is not a client port, but a development port.

    pastedimage1658190936817v3.png

    pastedimage1658190953822v4.png

    Hope this helps.

    Thanks.

    ZHU

  • Hoang Ng Profile Picture
    307 on at

    Thanks Yun

    I already checked the Developer mode

    pastedimage1658196489954v1.png

    Could you please advise more place to check

  • Suggested answer
    YUN ZHU Profile Picture
    101,995 Super User 2026 Season 1 on at

    Below is my example, hopefully it will give you some hints.

    BC:

    pastedimage1658196989972v1.png

    launch.json: I used windows authentication

    pastedimage1658197316308v2.png

    Thanks.

    ZHU

  • Hoang Ng Profile Picture
    307 on at

    Thanks YUN, 

    I could not solve the error although I install Visual Studio Code in Server which hosts the ERP. The error is still 

    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Your own server",
                "request": "launch",
                "type": "al",
                "environmentType": "OnPrem",
                "server": "http://localhost:80/PROD",
                "serverInstance": "PROD",
                "authentication": "UserPassword",
                "tenant": "default",
                "startupObjectId": 22,
                "startupObjectType": "Page",
                "breakOnError": true,
                "launchBrowser": true,
                "enableLongRunningSqlStatements": true,
                "enableSqlInformationDebugger": true
               
            }
        ]
    }
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    yzhums uses Windows authentication while you are using UserPassword for the authentication. UserPassword requires NavUserPassword for the NST authentication and probably also SSL cert.

    I would bet that this causing the issue.

    Thank you.

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,050 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,200 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans