Errors while running EXE. the actual Script runs with no issues.

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

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 6 years and 11 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.
Locked
User avatar
rana.b4523@gmail.com
Posts: 6
Last visit: Tue Mar 12, 2024 4:36 pm

Errors while running EXE. the actual Script runs with no issues.

Post by rana.b4523@gmail.com »

Hello Everyone,

I am fairly new to PowerShell studio

I have created a GUI Tool/Script which would add or delete text from input text files. now the actual script (PS1 version) works OK.

But when i convert it to EXE, and run the EXE version it starts giving errors.

the PS1 script version has been tried on different machines and works with no errors.

but the EXE version fails completely. Error Details below.
Capture.PNG
Capture.PNG (8.81 KiB) Viewed 1337 times
PS1 version - Working (screenshot below)
Capture2.PNG
Capture2.PNG (11.92 KiB) Viewed 1335 times
Please help !
Thanks
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Errors while running EXE. the actual Script runs with no issues.

Post by jvierra »

What is on line 22?

what build values did you use?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Errors while running EXE. the actual Script runs with no issues.

Post by davidc »

What build of PowerShell Studio are you using?
David
SAPIEN Technologies, Inc.
This topic is 6 years and 11 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.
Locked