Skip to main content

Notifications

Community site session details

Community site session details

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

Cannot start service MicrosoftDynamicsNavServer$BC on computer '.'

(0) ShareShare
ReportReport
Posted on by

Hi,

I was hosting Business Central Wave 2 container on my local computer using following command:

new-navcontainer -accept_eula -containerName test -imageName mcr.microsoft.com/businesscentral/sandbox:15.2.39040.39399-us:us

it pulls image but unable to start service tier. Below is the output after pulling the image:

Creating container TestBCContainer from image mcr.microsoft.com/businesscentral/sandbox:15.2.39040.39399-us-ltsc2019
d8d91e0dcf51fc0a5741126249c5b9ae99f51f1fb34d2bcc64a5b2bb9da87b1c
Waiting for container TestBCContainer to be ready
Initializing...
Setting host.docker.internal to 192.168.11.5 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.11.5 in container hosts file (copy from host hosts file)
Setting host.docker.internal to 192.168.0.100 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.0.100 in container hosts file (copy from host hosts file)
Setting host.docker.internal to 192.168.100.9 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.100.9 in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to 172.19.128.1 in container hosts file
Starting Container
Hostname is TestBCContainer
PublicDnsName is TestBCContainer
Using Windows Authentication
Starting Local SQL Server
Starting Internet Information Server
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Service 'Dynamics 365 Business Central Server [BC] (MicrosoftDynamicsNavServer$BC)' cannot be started due to the following error: Cann
ot start service MicrosoftDynamicsNavServer$BC on computer '.'.
at <ScriptBlock>, C:\Run\navstart.ps1: line 142
at <ScriptBlock>, C:\Run\start.ps1: line 121
at <ScriptBlock>, <No file>: line 1Error
Initializing...
Setting host.docker.internal to 192.168.11.5 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.11.5 in container hosts file (copy from host hosts file)
Setting host.docker.internal to 192.168.0.100 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.0.100 in container hosts file (copy from host hosts file)
Setting host.docker.internal to 192.168.100.9 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.100.9 in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to 172.19.128.1 in container hosts file
Starting Container
Hostname is TestBCContainer
PublicDnsName is TestBCContainer
Using Windows Authentication
Starting Local SQL Server
Starting Internet Information Server
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Service 'Dynamics 365 Business Central Server [BC] (MicrosoftDynamicsNavServer$BC)' cannot be started due to the following error: Cann
ot start service MicrosoftDynamicsNavServer$BC on computer '.'.
at <ScriptBlock>, C:\Run\navstart.ps1: line 142
at <ScriptBlock>, C:\Run\start.ps1: line 121
at <ScriptBlock>, <No file>: line 1
Initialization of container TestBCContainer failed
At C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\0.6.4.24\ContainerHandling\Wait-NavContainerReady.ps1:44 char:17
+ ... throw "Initialization of container $containerName failed" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Initialization ...ontainer failed:String) [], RuntimeException
+ FullyQualifiedErrorId : Initialization of container TestBCContainer failed

CAN ANYBODY PLEASE HELP ME IN THIS? WHAT IS THIS ISSUE AND HOW TO RESOLVE IT?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Cannot start service MicrosoftDynamicsNavServer$BC on computer '.'

    Normally I prefer NavUserPassword for containers because it's "domain agnostic". Simply use -auth NavUserPassword in your script and you will be prompted to insert a username and a password for your D365BC instance.

    However, Windows Authentication works if you've previously inserted the corrected credentials during the container's creation.

  • Community Member Profile Picture
    on at
    RE: Cannot start service MicrosoftDynamicsNavServer$BC on computer '.'

    I am hating it to !

    I seriously unable to login and don't know what to do now

    Which authentication is recommended in your opinion?

    And what should I do now because I have tried logging in using windows credentials :(

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Cannot start service MicrosoftDynamicsNavServer$BC on computer '.'

    If you've used Windows Authentication, during the container creation you should be prompted to insert your Windows Credentials. Credentials are the windows credentials inserted here.

    I normally hate using Windows Authentcation with Docker containers :)

  • Community Member Profile Picture
    on at
    RE: Cannot start service MicrosoftDynamicsNavServer$BC on computer '.'

    Thanks

    I just requested Microsoft PSBC Team to provide me the developer license, then I will try your solution to import the license file to the container.

    I have another question to you.

    I have created Business Central container and its desktop shortcuts successfully. When I double click on  Web Client shortcut, it is opened in the browser but it is asking me to enter username and password. I used windows authentication while creating the container.

    Can you please tell me that what username and password should be entered in there to login ?

    I have already tried windows password and and username but it doesn't work.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Cannot start service MicrosoftDynamicsNavServer$BC on computer '.'

    You can import a development license by using the following cmdlet:

    Import-NavContainerLicense -containerName "ContainerName" -LicenseFile "Path of .flf license"

  • Community Member Profile Picture
    on at
    RE: Cannot start service MicrosoftDynamicsNavServer$BC on computer '.'

    No, I did not import a custom license into the container because I do not have any licenses. How can I get the license?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Cannot start service MicrosoftDynamicsNavServer$BC on computer '.'

    Have you imported a custom license into the container or not? You can directly create a container with the test toolkit installed by adding these options to your script:

    -includeTestToolkit -includeTestLibrariesOnly

  • Community Member Profile Picture
    on at
    RE: Cannot start service MicrosoftDynamicsNavServer$BC on computer '.'

    Yes, I ran PowerShell ISE as administrator... I thin it did not downloaded Service Tier folder that's why it was creating error. I just restarted the whole process, it has started working now and container is ready for connections !

    But for now, when run the following command:

    Import-TestToolkitToNavContainer -containerName TestBC

    it gives me the following error output:

    Import-TestToolkitToNavContainer -containerName TestBC

    Copy from container TestBC (C:\Applications.us\Microsoft_Any_15.2.39040.39399.app) to C:\ProgramData\NavContainerHelper\Extensions\TestBC

    \_Microsoft_Any_15.2.39040.39399.app

    Publishing C:\ProgramData\NavContainerHelper\Extensions\TestBC\_Microsoft_Any_15.2.39040.39399.app

    Synchronizing Any on tenant default

    Installing Any on tenant default

    WARNING: Cannot install extension Any by Microsoft 15.2.39040.39399 for the tenant default because it is already installed.

    App successfully published

    Copy from container TestBC (C:\Applications.us\Microsoft_Library Assert_15.2.39040.39399.app) to C:\ProgramData\NavContainerHelper\Extens

    ions\TestBC\_Microsoft_Library Assert_15.2.39040.39399.app

    Publishing C:\ProgramData\NavContainerHelper\Extensions\TestBC\_Microsoft_Library Assert_15.2.39040.39399.app

    Synchronizing Library Assert on tenant default

    Installing Library Assert on tenant default

    WARNING: Cannot install extension Library Assert by Microsoft 15.2.39040.39399 for the tenant default because it is already installed.

    App successfully published

    Copy from container TestBC (C:\Applications\TestFramework\TestRunner\Microsoft_Test Runner.app) to C:\ProgramData\NavContainerHelper\Exte

    nsions\TestBC\_Microsoft_Test Runner.app

    Publishing C:\ProgramData\NavContainerHelper\Extensions\TestBC\_Microsoft_Test Runner.app

    Your program license does not allow you to publish 'AL Test Suite'.

    at <ScriptBlock>, <No file>: line 12

    Your program license does not allow you to publish 'AL Test Suite'.

    At C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\0.6.4.24\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.Cmdlets.Publis

      hNavApp

       + PSComputerName        : 6f3704ee162d6d520f19f99555e4c2db776c3c4bd5ec94af250ff2f5623ce8c5

    Please let me what where I am wrong

    Thanks

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Cannot start service MicrosoftDynamicsNavServer$BC on computer '.'

    Are you using an administrator account to start this script?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,063

#2
YUN ZHU Profile Picture

YUN ZHU 1,002 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 800

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans