web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Unable to setup a local-hosted container sandbox

(0) ShareShare
ReportReport
Posted on by 259

I am trying to setup BC Sandbox and following below link

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-get-started-container-sandbox#set-up-a-local-hosted-container-sandbox

After the process completes, I am getting below information as mentioned in the link

Container IP Address, Container Hostname, Container Dns Name, Web Client, Dev. Server, Dev. ServerInstance & Files: http://MyBCApp*****

But I am getting a warning and an error as well

Warning: 

You are running a container which is 105 days old.
Microsoft recommends that you always run the latest version of our containers.

Error: 

Your program license does not allow you to publish 'User Login Test Library'.
at <ScriptBlock>, <No file>: line 12
Your program license does not allow you to publish 'User Login Test Library'.
At C:\Program
Files\WindowsPowerShell\Modules\navcontainerhelper\0.6.5.11\ContainerHandling\Invoke-ScriptInNavContainer.ps1:37 char:13
+ Invoke-Command -Session $session -ScriptBlock $scriptbloc ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Publish-NAVApp], InvalidOperationException
+ FullyQualifiedErrorId : MicrosoftDynamicsNavServer$BC/nav-systemapplication,Microsoft.Dynamics.Nav.Apps.Management.Cm
dlets.PublishNavApp
+ PSComputerName : 38cd2e118f03039333daecb237b7b7b0dd2ad1c91383e2cf5678c1fb7c7bbfab

Moreover, in the link it says that 4 desktop shortcuts will be created but I got only 3. Windows Client is missing.

After that I installed .vsix file in VS code and update .json file accordingly. When I create and run AL project I am getting below errors

8255.Capture.PNG

  • Yuhi Profile Picture
    Microsoft Employee on at

    Hi Danyal,

    I want to know more information.

    First, for this error:

    Your program license does not allow you to publish 'User Login Test Library'.

    Did you fill out License File Url?

     pastedimage1590806595209v1.png

    Like https://github.com/microsoft/nav-docker/issues/458 .

    Second, what is in /.alpackages?

    Best regards,

    Yuhi

  • Verified answer
    Yuhi Profile Picture
    Microsoft Employee on at

    Hi Danyal,

    Please try to download symbols on Visual Studio Code:

    Ctrl Shift p -> AL: Download Symbols

    Then, ./alpackages is gonna be created in your working folder like...

    pastedimage1590835699368v1.png

    After that, you could probably publish without debugging (Ctrl F5) and your Business Central hosted on local would be opened in your web browser.

    For your information:

    {
        "version": "0.2.0",
        "configurations": [
            {
                "type": "al",
                "request": "launch",
                "name": "Your own server",
                "server": "http://myApp",
                "serverInstance": "BC",
                "authentication": "Windows",
                "startupObjectId": 22,
                "startupObjectType": "Page",
                "breakOnError": true,
                "launchBrowser": true,
                "enableLongRunningSqlStatements": true,
                "enableSqlInformationDebugger": true
            }
        ]
    }

    I hope this will be helpful to you.

    Best regards,

    Yuhi

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 545 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 354 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 228 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans