Skip to main content
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 295

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.
  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Visual Studio Code - AL - Cannot download Symbol - On Premise

    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.

  • Hoang Ng Profile Picture
    295 on at
    RE: Visual Studio Code - AL - Cannot download Symbol - On Premise

    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
    YUN ZHU Profile Picture
    86,125 Super User 2025 Season 1 on at
    RE: Visual Studio Code - AL - Cannot download Symbol - On Premise

    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
    295 on at
    RE: Visual Studio Code - AL - Cannot download Symbol - On Premise

    Thanks Yun

    I already checked the Developer mode

    pastedimage1658196489954v1.png

    Could you please advise more place to check

  • Suggested answer
    YUN ZHU Profile Picture
    86,125 Super User 2025 Season 1 on at
    RE: Visual Studio Code - AL - Cannot download Symbol - On Premise

    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

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans