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.
Answers
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
}
]
after the Komma in the port line - 10 spaces was added, when these has been removed the system are running :-)