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

Notifications

Announcements

No record found.

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 297

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
    95,331 Super User 2025 Season 2 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
    297 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
    95,331 Super User 2025 Season 2 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
    297 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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans