web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

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
    98,821 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
    98,821 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,675 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 966 Super User 2026 Season 1

#3
Kamal Khakhkhar Profile Picture

Kamal Khakhkhar 610

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans