Not able to connect to Business Central through VS Code

hksharmaahksharmaa Member Posts: 55
Hi,
I have installed Business central Wave 2 Update 1 and also VS code.
When i am creating a new project and also made changes to launch.JSON file as show in attachment i am getting following error.

Error: Server and server instance must be specified when using Windows authentication
Error: The configuration in the launch.json file is not valid.


gu53wqwaj2gx.png

Answers

  • PhoguePhogue Member Posts: 76
    Delete "/BC150" from "server", as it should be specified under serverinstance.
  • hksharmaahksharmaa Member Posts: 55
    Same error after removing /BC150 from server. File is shared
  • PhoguePhogue Member Posts: 76
    You have a port specified both in "Port" and in "Server" as well, perhaps deleting it from server would help?
  • SanderDkSanderDk Member Posts: 497
    What is your setting in your service tier?
    y3p94zyb8s4o.png
    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
  • jrm@bdo.dkjrm@bdo.dk Member Posts: 10
    Did anyone solve this problem, as I have the same issue.

    The load info in VCose says...:
    [2020-06-17 11:13:45.82] Publishing AL application using launch configuration 'DEV-ADVISORY03'.
    [2020-06-17 11:13:46.71] Targeting server 'http://localhost' and server instance ''.
    [2020-06-17 11:13:46.71] Using Windows authentication.
    [2020-06-17 11:13:46.71] Error: Server and server instance must be specified when using Windows authentication
    [2020-06-17 11:13:46.94] Error: The configuration in the launch.json file is not valid.

    As you can see it do not find the server instance even the data are loaded in the launch file..

    "version": "0.2.0",
    "configurations": [
    {
    "name": "DEV-ADVISORY03",
    "type": "al",
    "request": "launch",
    "server": "http://localhost",
    "serverInstance": "Sabetoflex",
    "port": 7049,
    "authentication": "Windows",
    "startupObjectId": 22,
    "startupObjectType": "Page",
    "breakOnError": true,
    "launchBrowser": true,
    "schemaUpdateMode": "Recreate",
    "enableSqlInformationDebugger": true,
    "enableLongRunningSqlStatements": true
    }
    ]
  • jrm@bdo.dkjrm@bdo.dk Member Posts: 10
    Fail has been detected...
    after the Komma in the port line - 10 spaces was added, when these has been removed the system are running :-)
Sign In or Register to comment.