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 :
Business Central forum

VS code connect to LS Central

(0) ShareShare
ReportReport
Posted on by

Hi,

Can anyone here help me how to fix my VS Code. I try to download the symbols but it seems that there are a problem. 

Categories:
  • MarkPet Profile Picture
    on at

    my database is w1-ls-nav-13-01-release. Im trying to connect the VS code to Business central with LS.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    Without details is quite difficult to help :)

    Have you enabled th development port on the service tier? What errors do you have? Is launch.json configured correctly?

  • MarkPet Profile Picture
    on at

    [2019-02-04 15:08:45.97] Using reference symbols cache path: c:\Users\Pet\Documents\AL\LS\./.alpackages

    [2019-02-04 15:08:45.97] Sending request to localhost/.../packages;appName=Application&versionText=13.0.0.0

    [2019-02-04 15:08:45.97] Sending request to localhost/.../packages;appName=System&versionText=13.0.0.0

    [2019-02-04 15:08:59.38] The request for path /BC130/dev/packages?publisher=Microsoft&appName=Application&versionText=13.0.0.0 failed with code ServiceUnavailable. Reason: The tenant 'default' is not accessible.

    [2019-02-04 15:09:00.79] 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.

    Above are the errors after trying to download the symbols

  • MarkPet Profile Picture
    on at

    {

       "version": "0.2.0",

       "configurations": [

           {

               "type": "al",

               "request": "launch",

               "name": "Your own server",

               "server": "http://localhost",

               "serverInstance": "BC130",

               "authentication": "Windows",

               "startupObjectId": 22,

               "startupObjectType": "Page",

               "breakOnError": true

           }

       ]

    }

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    are you sure that localhost is the correct name of your server instance? Are you on a local machine? Please check your service tier configuration. It must be the server name you use to connect to D365BC.

  • MarkPet Profile Picture
    on at

    Yes, because I try it to NAV default database (Demo Database NAV (13-0)) and it execute well. But after restoring the LS database (w1-ls-nav-13-01-release) and try to test the VS code the error persist.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    Maybe the database is missing the symbols? Tr to generate them by running finsql.exe like the following:

    finsql.exe Command=generatesymbolreference, Database=YOURDBNAME, ServerName=YOURSERVERNAME

    More info here:

    docs.microsoft.com/.../devenv-running-cside-and-al-side-by-side

  • MarkPet Profile Picture
    on at

    I tried running the cmd but nothing happened

  • Suggested answer
    I Gusti Made Ari Profile Picture
    3,608 on at

    3-5 minutes after you execute the command to generate the symbol, please check your role tailored client folder :

    C:\Program Files (x86)\Microsoft Dynamics NAV\130\RoleTailored Client

    a file named navcommandresult.txt is saved to the Dynamics NAV Client connected to Business Central installation folder. If the command succeeded, the file will contain text like

    [0] [06/12/17 14:36:17] The command completed successfully in '177' seconds.

    If the command failed, another file named naverrorlog.txt will be generated. This file contains details about the error(s) that occurred.

    and also please ensure you have  already added permission to download symbol to user which  you are using to database "w1-ls-nav-13-01-release".

  • kd.gundermann Profile Picture
    5 on at

    it took 20 Minutes on my system (and I have to run it as Administrator to see the naverrorlog.txt)

    and I had a lot off errors:

    This database is registered with several NAV Server instances. You must choose an instance to use before performing this activity.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans