Application has stopped working/crashes

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
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.
This topic is 1 year and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
mccullta
Posts: 5
Last visit: Thu Apr 13, 2023 11:44 am

Application has stopped working/crashes

Post by mccullta »

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
Attachments
OS Restrictions
OS Restrictions
Build Options - 2.png (103.67 KiB) Viewed 2413 times
Script Enging
Script Enging
Build Options - 1.png (138.33 KiB) Viewed 2413 times
AppCrashed
AppCrashed
AppCrashed.png (10.57 KiB) Viewed 2413 times
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Application has stopped working/crashes

Post by Alexander Riedel »

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.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
mccullta
Posts: 5
Last visit: Thu Apr 13, 2023 11:44 am

Re: Application has stopped working/crashes

Post by mccullta »

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.
Attachments
.NET Runtime Error
.NET Runtime Error
.NET Runtime Error.png (5.7 KiB) Viewed 2384 times
Application Error
Application Error
Application Error.png (10.03 KiB) Viewed 2384 times
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Application has stopped working/crashes

Post by Alexander Riedel »

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
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 1 year and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.