Hi experts,
I have a Business Central on-premises version 17.0.16974.0 that I cannot connect to using Visual Studio Code from the same computer.
I get this error:
[2020-11-04 15:10:57.22] Using reference symbols cache path: c:\Users\mns\Desktop\M\BC17-Hello\./.alpackages
[2020-11-04 15:10:57.24] Sending request to localhost:7049/.../packages
[2020-11-04 15:10:57.24] Sending request to localhost:7049/.../packages
[2020-11-04 15:10:57.26] The request for path /F-BC365-UDV/dev/packages?publisher=Microsoft&appName=Application&versionText=17.0.0.0 failed with code Forbidden. Reason: You do not have the following permissions on TableData Published Application: IndirectRead.
To view details about your permissions, see the Effective Permissions page. To report a problem, refer to the following server session ID: '33'.
[2020-11-04 15:10:57.27] The request for path /F-BC365-UDV/dev/packages?publisher=Microsoft&appName=System&versionText=17.0.0.0 failed with code Forbidden. Reason: You do not have the following permissions on TableData Published Application: IndirectRead.
To view details about your permissions, see the Effective Permissions page. To report a problem, refer to the following server session ID: '34'.
[2020-11-04 15:10:57.27] 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.
launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Your own server",
"request": "launch",
"type": "al",
"environmentType": "OnPrem",
"server": "http://localhost",
"port": 7049,
"serverInstance": "F-BC365-UDV",
"authentication": "Windows",
"startupObjectId": 22,
"startupObjectType": "Page",
"breakOnError": true,
"launchBrowser": true,
"enableLongRunningSqlStatements": true,
"enableSqlInformationDebugger": true //,
// "tenant": "default"
}
]
}
app.json:
{
"id": "137f1836-c52f-4de8-a16d-838e38e14a87",
"name": "BC17-Hello",
"publisher": "Default publisher",
"version": "1.0.0.0",
"brief": "",
"description": "",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"dependencies": [],
"screenshots": [],
"platform": "17.0.0.0",
"application": "17.0.0.0",
"idRanges": [
{
"from": 50100,
"to": 50149
}
],
"showMyCode": true,
"runtime": "6.0"
}