I have an outside application from one of the company's software I support.
I configured a new Window Server 2022 to run this application. I also tested this on some other versions of Window too and getting a similar error.
When I attempt to load it, I get the following error:
$PSVersionTable
Name Value
---- -----
PSVersion 7.5.0
PSEdition Core
GitCommitId 7.5.0
OS Microsoft Windows 10.0.20348
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
It appears to me, since the PowerShell version matches the System.Management.Automation and the other VM's I tested it on, the error matches the PSVersion. I am not sure if it is a .Net error.
I am not sure where or how to download the reference assembly.
I also see NuGet is not installed on the Win 2022.
In response to a posted comment, the application is package as an exe file.
I have only ever worked with PowerShell as a native PowerShell files.
I have an outside application from one of the company's software I support.
I configured a new Window Server 2022 to run this application. I also tested this on some other versions of Window too and getting a similar error.
When I attempt to load it, I get the following error:
$PSVersionTable
Name Value
---- -----
PSVersion 7.5.0
PSEdition Core
GitCommitId 7.5.0
OS Microsoft Windows 10.0.20348
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
It appears to me, since the PowerShell version matches the System.Management.Automation and the other VM's I tested it on, the error matches the PSVersion. I am not sure if it is a .Net error.
I am not sure where or how to download the reference assembly.
I also see NuGet is not installed on the Win 2022.
In response to a posted comment, the application is package as an exe file.
I have only ever worked with PowerShell as a native PowerShell files.
First, thanks for the help.
The issue revolve around the version of PowerShell.
The documentation stated: PowerShell 7.4.5 64-bit or higher.
It turned out, it will only run in PowerShell 7.4.5.
Once I downgraded, everything worked as expected.