Not able to connect to Business Central through VS Code
                
                    hksharmaa                
                
                    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.

                
                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.

0                
            Answers
- 
            Delete "/BC150" from "server", as it should be specified under serverinstance.0
 - 
            
 - 
            You have a port specified both in "Port" and in "Server" as well, perhaps deleting it from server would help?0
 - 
            What is your setting in your service tier?

For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.0 - 
            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
}
]
0 - 
            Fail has been detected...
after the Komma in the port line - 10 spaces was added, when these has been removed the system are running :-)0 
Categories
- All Categories
 - 73 General
 - 73 Announcements
 - 66.6K Microsoft Dynamics NAV
 - 18.7K NAV Three Tier
 - 38.4K NAV/Navision Classic Client
 - 3.6K Navision Attain
 - 2.4K Navision Financials
 - 116 Navision DOS
 - 851 Navision e-Commerce
 - 1K NAV Tips & Tricks
 - 772 NAV Dutch speaking only
 - 617 NAV Courses, Exams & Certification
 - 2K Microsoft Dynamics-Other
 - 1.5K Dynamics AX
 - 323 Dynamics CRM
 - 111 Dynamics GP
 - 10 Dynamics SL
 - 1.5K Other
 - 990 SQL General
 - 383 SQL Performance
 - 34 SQL Tips & Tricks
 - 35 Design Patterns (General & Best Practices)
 - 1 Architectural Patterns
 - 10 Design Patterns
 - 5 Implementation Patterns
 - 53 3rd Party Products, Services & Events
 - 1.6K General
 - 1.1K General Chat
 - 1.6K Website
 - 83 Testing
 - 1.2K Download section
 - 23 How Tos section
 - 252 Feedback
 - 12 NAV TechDays 2013 Sessions
 - 13 NAV TechDays 2012 Sessions
 

