14. Januar 2025 15:44
Hallo Julian,
vielen Dank für deine Ausführungen.
Genau, das soll alles bei mir lokal auf dem Notebook laufen, da wir ende des Jahres keine eigenen Server mehr laufen haben wollen.
Hier scheinen einige Sachen zusammen gekommen zu sein - wie so oft und gerne:
- System/Netzwerkdienst (der Dienstbenutzer) ist nun in der lokalen Admingruppe
- anstatt localhost verwende ich nun meinen Computernamen (obwohl ich der Meinung war, dass dies beliebig austauschbar ist)
- mein lokaler Benutzer ist nun in der DB hinterlegt, hat den Lizenztyp 0 und SUPER
Auf die Umgebung komme ich nun per Browser - dafür schon einmal meinen herzlichsten Dank!
Leider lädt VSC die Symbole nicht. Ergo habe ich von dort noch keinen Zugriff auf die Umgebung. Vielleicht fällt dir dazu noch etwas ein:
[2025-01-14 14:33:21.85] Using reference symbols cache paths: [c:\Users\...\Documents\AL\Local2\.alpackages]
[2025-01-14 14:33:21.85] Sending request to
http://***:7049/BC220/dev/packages?publ ... nt=default[2025-01-14 14:33:21.86] Sending request to
http://***:7049/BC220/dev/packages?publ ... nt=default[2025-01-14 14:33:21.86] Sending request to
http://***:7049/BC220/dev/packages?publ ... ame=System Application&versionText=22.5.0.0&appId=00000000-0000-0000-0000-000000000000&tenant=default
[2025-01-14 14:33:21.86] Sending request to
http://***:7049/BC220/dev/packages?publ ... pName=Base Application&versionText=22.5.0.0&appId=437dbf0e-84ff-417a-965d-ed2bb9650972&tenant=default
[2025-01-14 14:33:22.01] The request for path /BC220/dev/packages?publisher=Microsoft&appName=System&versionText=22.0.0.0&appId=8874ed3a-0643-4247-9ced-7a7002f7135d&tenant=default failed with code NotFound. Reason: No published package matches the provided arguments.
[2025-01-14 14:33:22.19] The following dependencies will be queried for propagated dependencies:
System Application by Microsoft (22.5.0.0)
[2025-01-14 14:33:22.19] Sending request to
http://***:7049/BC220/dev/packages?publ ... ame=System Application&versionText=22.5.0.0&appId=63ca2fa4-4f03-4f2b-a480-172fef340d3f&tenant=default
[2025-01-14 14:33:22.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.
Aus meiner Sicht sind die Konfigurationen korrekt:
app.json
{
"id": "048c62ce-dd2f-4609-b9e3-6e139d4d38ef",
"name": "Local2",
"publisher": "Default Publisher",
"version": "1.0.0.0",
"brief": "",
"description": "",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"dependencies": [
{
"appId": "00000000-0000-0000-0000-000000000000",
"name": "System Application",
"publisher": "Microsoft",
"version": "22.5.0.0"
},
{
"appId": "437dbf0e-84ff-417a-965d-ed2bb9650972",
"name": "Base Application",
"publisher": "Microsoft",
"version": "22.5.0.0"
}
],
"screenshots": [],
"platform": "22.0.0.0",
"application": "22.5.0.0",
"idRanges": [
{
"from": 50100,
"to": 50149
}
],
"resourceExposurePolicy": {
"allowDebugging": true,
"allowDownloadingSource": true,
"includeSourceInSymbolFile": true
},
"runtime": "11.0",
"features": [
"NoImplicitWith"
]
}
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "MyName",
"request": "launch",
"type": "al",
"environmentType": "OnPrem",
"server": "http://***",
"serverInstance": "BC220",
"authentication": "Windows",
"startupObjectId": 22,
"startupObjectType": "Page",
"breakOnError": "All",
"launchBrowser": true,
"enableLongRunningSqlStatements": true,
"enableSqlInformationDebugger": true,
"tenant": "default",
"usePublicURLFromServer": true
}
]
}
Verbinden soll sich das ganze hiermit: Version: DE Business Central 22.5 (Plattform 22.0.60117.0 + Anwendung 21.8.56995.0)
PS C:\> Get-NAVServerInstance -ServerInstance BC220
ServerInstance : MicrosoftDynamicsNavServer$BC220
DisplayName : Microsoft Dynamics 365 Business Central Server [BC220]
State : Running
ServiceAccount : NT-AUTORITÄT\Netzwerkdienst
Version : 22.0.55180.0
Default : True
PS C:\> Get-NAVAppInfo -ServerInstance BC220 -Tenant default
Id : 63ca2fa4-4f03-4f2b-a480-172fef340d3f
Name : System Application
Version : 22.5.59966.60134
Publisher : Microsoft
ExtensionType : ModernDev
Scope : Global
Tenant :