[SOLVED] Can't download symbols on-premise, or compile

Miklos_Hollender
Miklos_Hollender Member Posts: 1,629
edited 2025-11-28 in NAV Three Tier

Seems I cannot see the server from VSCode, even though the BC Admin settings and the launch.json seem correct

[2025-11-13 13:57:28.60] Sending request to http://serversomething.local:7149/BC-TEST/dev/packages?publisher=Microsoft&appName=System&versionText=1.0.0.0&appId=8874ed3a-0643-4247-9ced-7a7002f7135d&tenant=default[2025-11-13 13:57:28.61] Error: Unauthorized[2025-11-13 13:57:28.61] Error: Unauthorized[2025-11-13 13:57:28.61] Error: Error: An error occured while processing the request.

However opening

http://serversomething.local:7149/BC-TEST/dev/packages?publisher=Microsoft&appName=System&versionText=1.0.0.0&appId=8874ed3a-0643-4247-9ced-7a7002f7135d&tenant=default

in a browser works so far that it pops up a login window (but I cannot log in there either, maybe that is normal?)

Anyhow that means the port is open, the URL is correct and so on.

{
"version": "0.2.0",
"configurations": [

    {
"name": "Your own server",
"request": "launch",
"type": "al",
"server": "http://someserver.local",
"serverInstance": "BC-TEST",
"port": 7149,
"authentication": "UserPassword",
"startupObjectId": 22,
"startupObjectType": "Page",
"breakOnError": "All",
"launchBrowser": true,
"enableLongRunningSqlStatements": true,
"enableSqlInformationDebugger": true,
"tenant": "default",
"usePublicURLFromServer": true
}
]

}

Answers

  • Miklos_Hollender
    Miklos_Hollender Member Posts: 1,629

    If I use for "server" the "web client base url" from client services,

    "https://someserverlocal:4443/BC-TEST"

    Then I get an SSL error.

    Note that we use BC in the browser with just simple http and 8080 port

  • Miklos_Hollender
    Miklos_Hollender Member Posts: 1,629

    If this helps I cannot open the published odata web services either, in a browser it keeps popping up the authentication window, in power automate it says it is not available

  • ftornero
    ftornero Member Posts: 528

    Hello @Miklos_Hollender ,,

    Try with the server like this

            "server": "http://someserverlocal:8080/BC-TEST",
    

    Regards.

  • Miklos_Hollender
    Miklos_Hollender Member Posts: 1,629

    I am sure the 8080 port is not right

  • Miklos_Hollender
    Miklos_Hollender Member Posts: 1,629
    1. it seems to only work on the server due to some network limitation
    2. For our version of Business Central we need to use the AL Extension V7, not the latest, unfortunately it is not documented anywhere