Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Business Central forum

Error publishing extension in docker container

(0) ShareShare
ReportReport
Posted on by 90

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....

{
"version": "0.2.0",
"configurations": [
{
"name": "HtlBCDev600",
"type": "al",
"request": "launch",
"startupObjectId": 22,
"server": "http://HtlBCDev600",
"serverInstance": "NAV",
"authentication": "UserPassword",
"breakOnError": true,
"breakOnRecordWrite": false
}
]
}

And this is the app.json...
{
"id": "cd872e73-6e13-4ccb-80b5-6b0cb9cd834a",
"name": "Noray HTL",
"publisher": "Noray Software",
"brief": "",
"description": "",
"version": "6.0.0.0",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "NoraySoftwareLogo.png",
"capabilities": [],
"dependencies": [],
"screenshots": [],
"platform": "13.0.0.0",
"application": "13.0.0.0",
"idRange": {"from": 7074165, "to": 7184510 },
"runtime": "2.0",
"target": "Extension",
"features": [ "TranslationFile" ]
}

What i'm doing wrong?

Thanks in advance...

 

 

 

Categories:
  • Suggested answer
    Jose Manuel Sola Profile Picture
    90 on at
    RE: Error publishing extension in docker container

    It seems works THANKS!!!

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Error publishing extension in docker container

    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"

  • Jose Manuel Sola Profile Picture
    90 on at
    RE: Error publishing extension in docker container

    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?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Error publishing extension in docker container

    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.

  • Suggested answer
    ipablocerdan Profile Picture
    111 on at
    RE: Error publishing extension in docker container

    Change the idRange. Is a license problem. Use 50140.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,135 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans