-
So I just did a fresh install of:
After that, I tried to install dbatools (choco install dbatools), which ran without issue, but when I tried to run a Restore-DbaDatabase command, I got the following error: WARNING: [12:02:00][Restore-DbaDatabase] Failure | Could not load type 'Microsoft.SqlServer.Server.SqlContext' from assembly 'System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Seems like some wires got crossed somewhere, a mixup between the .net core System.Data and the old (full) .net framework, perhaps? Does anyone have any idea where I might've gone wrong, or what I could try to further diagnose the issue? I have tried uninstalling with chocolatey, and reinstalling again with Install-Module (from PSGallery). I've tried completely uninstalling PS7 and reinstalling. I'm not sure what else to try. I've verified that the System.Data assembly that is loaded is coming from C:\Program Files\PowerShell\7\System.Data.dll, so maybe that is wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Our module requires .NET 4.6 to be installed at this time. Windows 11 by default won't have that version installed. |
Beta Was this translation helpful? Give feedback.
-
Ah forgot about the issue is with SQL Server 2022 installation. Ref #8673 |
Beta Was this translation helpful? Give feedback.
Ah forgot about the issue is with SQL Server 2022 installation.
Ref #8673