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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Download Symbols not working with Sandbox nor with my own Server

(0) ShareShare
ReportReport
Posted on by 5

Hello,

I installed Business Central Wave 1 Spring 19 Release on Window Server 2012.

In Visual Studio Code I've tried downloading symbols with Microsoft Sandbox and my own Server but neither is working.

When I try to download the symbols with my own Server I'm kind of stuck in an authentication loop.

Always have to "Log in" with "Your Username" and "Your Password" and only can cancel the authentication.

This is the launch.json for my own Server:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "al",
            "request": "launch",
            "name": "Your own server",
            "server": "http://localhost",
            "serverInstance": "BC140",
            "authentication": "UserPassword",
            "startupObjectId": 22,
            "startupObjectType": "Page",
            "breakOnError": true,
            "launchBrowser": true,
            "enableLongRunningSqlStatements": true,
            "enableSqlInformationDebugger": true
        }
    ]
}
The app.json for my own Server:
{
  "id": "f1169f08-796f-43b9-a4bd-a5706e2483de",
  "name": "TEST",
  "publisher": "Default publisher",
  "version": "1.0.0.0",
  "brief": "",
  "description": "",
  "privacyStatement": "",
  "EULA": "",
  "help": "",
  "url": "",
  "logo": "",
  "dependencies": [],
  "screenshots": [],
  "platform": "14.0.0.0",
  "application": "14.0.0.0",
  "idRanges": [
    {
      "from": 50100,
      "to": 50149
    }
  ],
  "contextSensitiveHelpUrl": "">https://TEST.com/help/",
  "showMyCode": true,
  "runtime": "3.0"
}
------------------------------------------------------------------------------
This is the launch.json with Microsoft Sandbox (30 Days Trial)

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "al",
            "request": "launch",
            "name": "Microsoft cloud sandbox",
            "startupObjectId": 22,
            "startupObjectType": "Page",
            "breakOnError": true,
            "launchBrowser": true,
            "enableLongRunningSqlStatements": true,
            "enableSqlInformationDebugger": true
        }
    ]
}
and the app.json with Microsoft Sandbox (30 Days Trial)
{
  "id": "89a868d9-212b-4504-bd64-e9dcc04aa4af",
  "name": "TEST2",
  "publisher": "Default publisher",
  "version": "1.0.0.0",
  "brief": "",
  "description": "",
  "privacyStatement": "",
  "EULA": "",
  "help": "",
  "url": "",
  "logo": "",
  "dependencies": [],
  "screenshots": [],
  "platform": "14.0.0.0",
  "application": "14.0.0.0",
  "idRanges": [
    {
      "from": 50100,
      "to": 50149
    }
  ],
  "contextSensitiveHelpUrl": "">https://TEST2.com/help/",
  "showMyCode": true,
  "runtime": "3.0"
}
This is the error I get when i try to download with Microsoft Sandbox:
[2020-01-28 17:27:20.32] Targeting Dynamics 365 Business Central.
[2020-01-28 17:27:20.33] Sending request to api.businesscentral.dynamics.com/.../packages
[2020-01-28 17:27:20.33] Sending request to api.businesscentral.dynamics.com/.../packages
[2020-01-28 17:27:21.26] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=Application&versionText=14.0.0.0 failed with code BadRequest. Reason: Bad Request
[2020-01-28 17:27:22.58] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=System&versionText=14.0.0.0 failed with code BadRequest. Reason: Bad Request
[2020-01-28 17:27:22.59] Could not download reference symbols. Please ensure that:
1. The correct server name and instance are specified in the launch.json file.
2. The correct application version is specified in the app.json file.
3. The dependencies are correctly specified in the app.json file.
------------------------------------------------------------------------------
Get-NAVServerInstance is giving me this:
ServerInstance : MicrosoftDynamicsNavServer$BC140
DisplayName : Microsoft Dynamics 365 Business Central Server [BC140]
ServerAccount : XXXX\Administrator
Version: 14.0.29530.0
Default : True
------------------------------------------------------------------------------
I searched the internet for solutions but nothing worked that's why I'm posting here now.
I really hope someone can help me with this.
I have the same question (0)
  • Verified answer
    Lars Lohndorf-Larsen Profile Picture
    on at
    RE: Download Symbols not working with Sandbox nor with my own Server

    Hi, for your on-prem setup try to change Authentication from UserPassword to Windows in Launch.json. And also can you check "Get-NAVServerSettings BC140", and especially if DeveloperServicesEnabled is TRUE, and check DeveloperServicesPort, and add a line for that also in Launch.json: Port = 7049 (whichever port you use).

    Just some initial ideas,

    Lars

  • S-Schulte Profile Picture
    5 on at
    RE: Download Symbols not working with Sandbox nor with my own Server

    Thank you!

    I changed UserPassword to Windows and added a line for port as you said and finally could download the symbols.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,285

#2
Sumit Singh Profile Picture

Sumit Singh 2,725

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,526

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans