Hi folks,
I'm trying to get a NAV/BC container working using docker and NavContainerHelper.
All seems to be going well, but I'm stuck on this error opening the Development environment after installation of the BC (latest) container:
Microsoft Dynamics NAV Development Environment
The following SQL Server error or errors occurred:
-2146893042,"HY000",[Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: no credentials are available in the security package
-2146893042,"HY000",[Microsoft][SQL Server Native Client 11.0]Cannot generate SSPI context
OK
I'm sure this has something to do with the credentials I used when asked for while running New-NavContainer, but
I tried all available users on my computer, and it is still not working.
Note that I'm using a Windows 10 professional system, that is not connected to a domain, and has only local users.
Does anybody know how to fix this?
0
Answers
What is your command for setting up the new container?
My personal way of setting up a container is something like :
#Set variable
$containerName = 'MyNewContainer'
$DevLic = 'C:\Developer\BC140_Dev.flf'
$password = ConvertTo-SecureString “MySuperSecretPassword” -AsPlainText -Force
$Cred = New-Object System.Management.Automation.PSCredential (“Admin”, $password)
$imgName = 'microsoft/bcsandbox:dk'
#NAVUserPass
New-NavContainer -accept_eula -containerName $containerName -auth NavUserPassword -Credential $cred -imageName $imgName -assignPremiumPlan -licenseFile $DevLic -includeCSide -updatehosts -doNotExportObjectsToText -enableSymbolLoading
This is working for me, but i also took a shortcut and used NAVUSERPASSWORD
I was using this line:
New-NavContainer -containerName BCdocker1 -imageName microsoft/bcsandbox:nl -accept_eula -Credential Admin -doNotExportObjectsToText -auth Windows -includeCSide
But yours is working great, I don't mind navuserpassword.
Thanks a lot!
For furture referance if you want to use windows login you can map you creditials like:
$credential = get-credential -UserName $env:USERNAME -Message "Using Windows Authentication. Please enter your Windows credentials."
And pass this to you container :-)