Product: PowerShell Studio 2022 (64 Bit)
Build: v5.8.200
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.19042.0
I wrote an application GUI about 3 years ago, and now need to make a minor change. I compiled it as an EXE, and it runs fine on a workstation. But on a server (2012 R2), it won't even launch.
I get the attached error...
Application has stopped working
A problem caused the program to stop working correctly. Please close the program.
Server PS version:
Name Value
---- -----
PSVersion 5.1.14409.1005
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1005
CLRVersion 4.0.30319.36627
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Script Engine: W64, SAPIEN Powersell V5 Host (Windows Forms)
Allowed to run on W7+, Server 2008+
I can see what else to configure.
Please advise,
Terri
Application has stopped working/crashes
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Application has stopped working/crashes
- Attachments
-
- OS Restrictions
- Build Options - 2.png (103.67 KiB) Viewed 2428 times
-
- Script Enging
- Build Options - 1.png (138.33 KiB) Viewed 2428 times
-
- AppCrashed
- AppCrashed.png (10.57 KiB) Viewed 2428 times
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Application has stopped working/crashes
Server 2012R2 is no longer a directly supported platform, so we do not test on that.
Most likely you are simply missing a runtime. Please check your Windows eventlog for details on the crash.
Most likely you are simply missing a runtime. Please check your Windows eventlog for details on the crash.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Application has stopped working/crashes
Thanks for the clue.
Attached are the errors from Event log.
Both Server 2012 and 2016 are running the same version of .NET Framework.
It appears to work Server 2016. Back in 2018/2019, Script Engine: 'SAPIEN PowerShell V2 Host (Windows Forms) Win32' was available. Now, only v5s are supported. I wonder if that's the difference.
Thanks for your support.
Attached are the errors from Event log.
Both Server 2012 and 2016 are running the same version of .NET Framework.
It appears to work Server 2016. Back in 2018/2019, Script Engine: 'SAPIEN PowerShell V2 Host (Windows Forms) Win32' was available. Now, only v5s are supported. I wonder if that's the difference.
Thanks for your support.
- Attachments
-
- .NET Runtime Error
- .NET Runtime Error.png (5.7 KiB) Viewed 2399 times
-
- Application Error
- Application Error.png (10.03 KiB) Viewed 2399 times
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Application has stopped working/crashes
The target framework for all V5 engines is .NET 4.8
https://dotnet.microsoft.com/en-us/down ... work/net48
V2-V4 engines are no longer supported. Generally Windows PowerShell 5.1 is the minimum required version.
The old .net framework versions used by V2 are no longer considered secure and lack features needed.
The OS versions running Powershell V2 only are also long out of support.
Microsoft ended support for the .NET 4.0 framework you are running on January 12, 2016
https://dotnet.microsoft.com/en-us/down ... work/net48
V2-V4 engines are no longer supported. Generally Windows PowerShell 5.1 is the minimum required version.
The old .net framework versions used by V2 are no longer considered secure and lack features needed.
The OS versions running Powershell V2 only are also long out of support.
Microsoft ended support for the .NET 4.0 framework you are running on January 12, 2016
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.