Open bab5470 opened 1 month ago
I see System.Diagnostics.DiagnosticSource.dll in the C:\Program Files\WindowsPowerShell\Modules\SimplySql\2.0.4.75\bin file version 8.0.23.53103
@bab5470 -- try launching powershell clean powershell -noprofile
and the import SimplySql Import-Module SimplySql
then verify that only this module is loaded (i.e. that SqlServer is not) Get-Module
.
I am trying to use SimplySQL in a Powershell script on our Windows Server 2022 system with Powershell 5.1. If I run Install-Module SimplySQL and Import-Module Simply SQL everything works as expected.
However, if I close my Powershell window and attempt to re-use it I get this error:
If I do an
uninstall-module simplysql
then aninstall-module simplysql
and animport-module simplysql
again it resumes working. So something with the module is getting messed up. It seems like it is related to 'System.Diagnostics.Metrics.Meter' from assembly 'System.Diagnostics.DiagnosticSource, Version=5.0.0.0, Culture=neutral,I don't have anything other than Windows Defender antivirus installed and no other security applications I can think of that might be tampering with the installation. I have other modules I am using that do not have this issue - it's only simplysql. Has anyone else seen this issue?
I do have the SQLServer Powershell module installed - maybe that's conflicting? Although it seems to only by simplysql that's the problem.