Announcements
Hi !
I'm trying to make my first extension on a isolated docker container. I think I've followed all the steps in documentation. I have fully access to web client, windows client and c/side development environment. However when i try to publish an extension with a tableextension and pageextension of Country/Regions entity, always I get this the following error:
Error Could not publish the package to the server. See Visual Studio Code debug console for more details Close Open launch.json:
But the debug console is blank.....
This is the information creating docker container....
Host is Windows 10 10.0.17134.0 - 1803
Pulling image microsoft/bcsandbox:es
es: Pulling from microsoft/bcsandbox
Digest: sha256:4e46e5b15b04cc7c3bcca5615912625efecc550663214be9ec642c873ecced89
Status: Image is up to date for microsoft/bcsandbox:es
Using image microsoft/bcsandbox:es
Removing container HtlBCDev600
Removing HtlBCDev600 from hosts
Removing C:\ProgramData\NavContainerHelper\Extensions\HtlBCDev600
Creating Nav container HtlBCDev600
NAV Version: 13.0.24630.25789-ES
Generic Tag: 0.0.7.1
Container OS Version: 10.0.14393.2551 (ltsc2016)
Host OS Version: 10.0.17134.0 (1803)
The container operating system does not match the host operating system, forcing hyperv isolation.
Creating container HtlBCDev600 from image microsoft/bcsandbox:es
e42c6214d65e0cd9b0b69c9f885f2b0cd92b91487ff3726ded6da32d1f6318c6
Waiting for container HtlBCDev600 to be ready
Initializing...
Starting Container
Hostname is HtlBCDev600
PublicDnsName is HtlBCDev600
WARNING: Container starts with TimeZone = Hora estándar GMT, which is not recognized in the list of TimeZones.
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 3451D16A066CCD189672D7130A1AB1169DF0F1CA
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Creating DotNetCore Web Server Instance
Enabling Financials User Experience
Creating http download site
Creating Windows user Noray
Setting SA Password and enabling SA
Creating Noray as SQL User and add to sysadmin
Creating SUPER user
Assign Premium plan for NORAY
Container IP Address: 172.29.242.3
Container Hostname : HtlBCDev600
Container Dns Name : HtlBCDev600
Web Client : http://HtlBCDev600/NAV/
Dev. Server : http://HtlBCDev600
Dev. ServerInstance : NAV
Files:
htlbcdev600/al-2.0.48254.vsix
Initialization took 128 seconds
Ready for connections!
Reading CustomSettings.config from HtlBCDev600
Creating Desktop Shortcuts for HtlBCDev600
Nav container HtlBCDev600 successfully created
Downloading C:\Users\JOSMAN~1\AppData\Local\Temp\CreateTestUsers.fob
Copy C:\Users\JOSMAN~1\AppData\Local\Temp\CreateTestUsers.fob to container HtlBCDev600 (c:\run\CreateTestUsers.fob)
Importing Objects from c:\run\CreateTestUsers.fob (container path)
Objects successfully imported
This is the launc.json configuration....
What i'm doing wrong?
Thanks in advance...
It seems works THANKS!!!
This is a license problem and you need to upload the license in your Docker container:
Import-NavContainerLicense -containerName "ContainerName" -LicenseFile "Path of .flf license"
Thanks Stefano, No I have not depolyed this app before, it's only because the version in NAV 2018 was 5.0.
It seems that it' a license problem.... I've deployed using f6 and i've added the "schemaUpdateMode": "Recreate" to launch.json as you told me and now i get this error message:
[2018-11-19 14:24:21.64] The request for path /NAV/dev/apps?SchemaUpdateMode=recreate failed with code 422. Reason: Your program license does not allow you to publish 'Country/Region HTL'.
However I've uploaded in C/SIDE environment my development license with this range id included....It exist any other way to upload my development license? or maybe i have to do anything else?
Try also deploying with F6 instead of F5 from VS Code. You should have extra informations in the output window. I see here version 6.0. Have you previously deployed this app?
If so, add "schemaUpdateMode": "Recreate" to launch.json.
Change the idRange. Is a license problem. Use 50140.
André Arnaud de Cal...
294,135
Super User 2025 Season 1
Martin Dráb
232,871
Most Valuable Professional
nmaenpaa
101,158
Moderator