Download AL symbols not found error, how to change my connection url?

kuhi
Member Posts: 18
in General Chat
Why my Visual Studio is connecting to
I'm able to connect by browser to Business Central:

When I try to download AL symbols I get Not Found error:
Here is my launch.json:
Here is my docker setup:
This is how I've created the docker in PowerShell:
http://adrianbc/BC/dev/metadata?tenant=default?
I'm able to connect by browser to Business Central:

When I try to download AL symbols I get Not Found error:
[2022-02-11 13:20:58.02] Using reference symbols cache path: c:\Users\dimitri\OneDriveArqui\AL\Pan\./.alpackages [2022-02-11 13:20:58.02] Sending request to http://adrianbc/BC/dev/metadata?tenant=default [2022-02-11 13:20:58.03] The request for path /BC/dev/metadata?tenant=default failed with code NotFound. Reason: Not Found [2022-02-11 13:20:58.03] Sending request to http://adrianbc/BC/dev/webendpoint [2022-02-11 13:20:58.03] The request for path /BC/dev/webendpoint failed with code NotFound. Reason: Not Found [2022-02-11 13:20:58.03] Sending request to http://adrianbc/BC/dev/metadata?tenant=default [2022-02-11 13:20:58.03] The request for path /BC/dev/metadata?tenant=default failed with code NotFound. Reason: Not Found [2022-02-11 13:20:58.03] Sending request to http://adrianbc/BC/dev/webendpoint [2022-02-11 13:20:58.04] The request for path /BC/dev/webendpoint failed with code NotFound. Reason: Not Found [2022-02-11 13:20:58.04] Sending request to http://adrianbc/BC/dev/metadata?tenant=default [2022-02-11 13:20:58.04] The request for path /BC/dev/metadata?tenant=default failed with code NotFound. Reason: Not Found [2022-02-11 13:20:58.04] Sending request to http://adrianbc/BC/dev/webendpoint [2022-02-11 13:20:58.04] The request for path /BC/dev/webendpoint failed with code NotFound. Reason: Not Found
Here is my launch.json:
{ "version": "0.2.0", "configurations": [ { "type": "al", "request": "launch", "name": "AdrianBC local", "server": "http://AdrianBC", "port": 80, "serverInstance": "BC", "authentication": "UserPassword", "breakOnError": true, "launchBrowser": true, "enableLongRunningSqlStatements": true, "enableSqlInformationDebugger": true, "tenant": "default", "schemaUpdateMode": "Synchronize" } ]}
Here is my docker setup:
Mounting Tenant Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Creating http download site Setting SA Password and enabling SA Creating adrian as SQL User and add to sysadmin Creating SUPER user Container IP Address: 172.24.103.254 Container Hostname : AdrianBC Container Dns Name : AdrianBC Web Client : http://AdrianBC/BC/?tenant=default Dev. Server : http://AdrianBC Dev. ServerInstance : BC Dev. Server Tenant : default Setting AdrianBC to 172.24.103.254 in host hosts file Setting AdrianBC-default to 172.24.103.254 in host hosts file Setting AdrianBC-default to 172.24.103.254 in container hosts file Files: http://AdrianBC:8080/ALLanguage.vsix Container Total Physical Memory is 8.5Gb Container Free Physical Memory is 5.8Gb Initialization took 38 seconds Ready for connections! Reading CustomSettings.config from AdrianBC Creating Desktop Shortcuts for AdrianBC Container AdrianBC successfully created Use: Get-BcContainerEventLog -containerName AdrianBC to retrieve a snapshot of the event log from the container Get-BcContainerDebugInfo -containerName AdrianBC to get debug information about the container Enter-BcContainer -containerName AdrianBC to open a PowerShell prompt inside the container Remove-BcContainer -containerName AdrianBC to remove the container again docker logs AdrianBC to retrieve information about URL's again PS C:\WINDOWS\system32>
This is how I've created the docker in PowerShell:
Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All Set-ExecutionPolicy -ExecutionPolicy Unrestricted Import-Module PowerShellGet Install-Module -Name BcContainerHelper $artifactUrl = Get-BCArtifactUrl -version 19 -country es -type Sandbox New-BCContainer -accept_eula -accept_outdated -containerName AdrianBC -artifactUrl $artifactUrl -shortcuts DesktopFolder -updateHosts -isolation hyperv -doNotExportObjectsToText -restart no -auth UserPassword -Verbose -locale "es-ES"
0
Best Answer
-
The symbols are not in the tenant database, so remove the tenant and the port. I never have those specified in my launch.json0
Answers
-
Change your port in the launch.json to 70490
-
Change your port in the launch.json to 7049
didn't work[2022-02-12 22:48:34.12] Targeting server 'http://AdrianBC', server instance 'BC' and tenant 'default'. [2022-02-12 22:48:34.12] Using user name and password authentication. User name used is: 'adrian'. [2022-02-12 22:48:34.15] Sending request to http://adrianbc:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=19.0.0.0&appId=00000000-0000-0000-0000-000000000000&tenant=default [2022-02-12 22:48:34.16] Sending request to http://adrianbc:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=1.0.0.0&appId=8874ed3a-0643-4247-9ced-7a7002f7135d&tenant=default [2022-02-12 22:48:34.16] Sending request to http://adrianbc:7049/BC/dev/packages?publisher=Arquiconsult Sistemas de Gestión%2C S.L.&appName=OPAN - Integración Hiopos&versionText=1.0.0.2&appId=42173e9d-1f11-4f57-b530-d1f182c27d98&tenant=default [2022-02-12 22:48:35.10] The request for path /BC/dev/packages?publisher=Arquiconsult%20Sistemas%20de%20Gesti%C3%B3n%2C%20S.L.&appName=OPAN%20-%20Integraci%C3%B3n%20Hiopos&versionText=1.0.0.2&appId=42173e9d-1f11-4f57-b530-d1f182c27d98&tenant=default failed with code NotFound. Reason: No published package matches the provided arguments. [2022-02-12 22:48:35.31] The following dependencies will be queried for propagated dependencies: System Application by Microsoft (19.3.0.0) Base Application by Microsoft (19.3.0.0) [2022-02-12 22:48:35.31] Sending request to http://adrianbc:7049/BC/dev/packages?publisher=Microsoft&appName=System Application&versionText=19.3.0.0&appId=63ca2fa4-4f03-4f2b-a480-172fef340d3f&tenant=default [2022-02-12 22:48:35.31] Sending request to http://adrianbc:7049/BC/dev/packages?publisher=Microsoft&appName=Base Application&versionText=19.3.0.0&appId=437dbf0e-84ff-417a-965d-ed2bb9650972&tenant=default [2022-02-12 22:48:36.63] 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.
0 -
The symbols are not in the tenant database, so remove the tenant and the port. I never have those specified in my launch.json0
-
You must specify the tenant.
If port is 7049 then you don't have to mentioned it indeed.0 -
-
actually... ahem... seems like it does require a tenant, even in a container. I thought I checked before posting that but it seems there's a tenant in every one of my launch.json, and it does not let me download symbols without one. That's so weird, I was convinced that it didnt need one.
0 -
actually... ahem... seems like it does require a tenant, even in a container. I thought I checked before posting that but it seems there's a tenant in every one of my launch.json, and it does not let me download symbols without one. That's so weird, I was convinced that it didnt need one.
Indeed sometimes it is confusing when you use tenant databases and single databases. I have made that mistake also0 -
it's true I just had to remove the port, the tenant is required.
Thank you0
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
- 320 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