You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unzip in a directory named C:\PS_B4) Note:
in case a different directory name is choosen, script code below needs to be adapted before running it!
$WinSCPnet_dll = ("C:\PS_B4\WinSCPnet.dll")
copy attached script: error.ps1 inthe the same directory
run powershell.exe
.\error.ps1
Expected behavior
no error
and text:
script: ended successfully
Actual behavior
error gets
thrown:
Exception calling ".ctor" with "0" argument(s): "Could not load type 'System.Diagnostics.PerformanceCounter' from assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."
Environment data
>$PSVersionTable
Name Value
---------
PSVersion 6.0.0-beta
PSEdition Core
GitCommitId v6.0.0-beta.4
OS Microsoft Windows 10.0.14393
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Steps to reproduce
the script error.ps1 is attached.
C:\PS_B4)Note:
in case a different directory name is choosen, script code below needs to be adapted before running it!
$WinSCPnet_dll = ("C:\PS_B4\WinSCPnet.dll")
.\error.ps1
Expected behavior
no error
and text:
script: ended successfully
Actual behavior
error gets
thrown:
Exception calling ".ctor" with "0" argument(s): "Could not load type 'System.Diagnostics.PerformanceCounter' from assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."
Environment data