-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not load type 'Microsoft.SqlServer.Server.SqlContext' from assembly 'System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. #3599
Comments
Please supply the full output of the scripts |
Also, does it work when you run this on PowerShell 5 on the host? |
I'm experiencing a similar issue while attempting to restore a backup of my BC Online database to a container. As you requested of @mati-own, I tried running all the scripts in PowerShell 5 but ultimately failed because the SQL Server certificate was not trusted. I'm sure there's a way around that, but I'm too exhausted to investigate it further tonight. The full output of that script is also below. Here's the script I'm running to create the container: $containerName = "BC243"
$auth = "UserPassword"
$credential = New-Object pscredential `
-ArgumentList 'admin', $passwordSecret.SecretValue
$licenseFile = Join-Path $PSScriptRoot "######.bclicense"
$databaseParams = @{
"databaseServer" = "localhost"
"databaseInstance" = "BCSERVER"
"databasePrefix" = "$($containerName)-"
"databaseName" = "CRONUS"
"databaseCredential" = New-Object pscredential `
-ArgumentList 'sa', $passwordSecret.SecretValue
"multitenant" = $true
}
New-BcContainer @databaseParams -replaceExternalDatabases `
-accept_eula `
-containerName "$containerName" `
-credential $credential `
-auth $auth `
-artifactUrl $artifactUrl `
-enableTaskScheduler `
-isolation hyperv `
-licenseFile $licenseFile And here is the full output, running on PowerShell 7.4.4:
And here is the full output running on PowerShell 5:
|
Quick update... I searched issues for help on the SQL Server cert issue (which I should have done to begin with, but again, it's been a long day). In any case, I found issue #3572, which prompted me to update I did not get the same error on PowerShell 5.1 as 7.4.4 ( However, I received another db-related error on the Here's the full output of this latest attempt:
|
I want to create local multitenant environment (v24.2) on docker, I get an error as below
Scripts used to create container and cause the issue
Full output of scripts
The text was updated successfully, but these errors were encountered: