Search found 6604 matches

by Alexander Riedel
Sun Jul 29, 2018 9:41 am
Forum: PowerShell Studio
Topic: GUI Script Hang with specific build engine.
Replies: 9
Views: 703

Re: GUI Script Hang with specific build engine.

Yeah, that really is a hack so to speak :-)
I will look what the differences are because it really puzzles me why one engine would work and not the other.
by Alexander Riedel
Sat Jul 28, 2018 9:42 pm
Forum: PowerShell Studio
Topic: GUI Script Hang with specific build engine.
Replies: 9
Views: 703

Re: GUI Script Hang with specific build engine.

As I said, it might not work. The Forms engine has not really changed for quite some time, and since it works in the other host and while running it from PowerShell Studio there is likely something else at play. It is quite possible and it would not be the first time that a Windows Update or a frame...
by Alexander Riedel
Sat Jul 28, 2018 12:45 pm
Forum: PowerShell Studio
Topic: GUI Script Hang with specific build engine.
Replies: 9
Views: 703

Re: GUI Script Hang with specific build engine.

Ah, yes, that is not a console. That is the actual host window. I am not sure why this one would work and the forms one would not, but I will look at the code and see what I can find out. Try this in your code, best probably in your event handler when you show YOUR form. $Window = $SAPIENHost.GetMai...
by Alexander Riedel
Sat Jul 28, 2018 9:11 am
Forum: PowerShell Studio
Topic: GUI Script Hang with specific build engine.
Replies: 9
Views: 703

Re: GUI Script Hang with specific build engine.

Ok, now I am confused. If you package (its not a compiler) for Windows Application, there should be no console.
Maybe we should see some screenshots of the settings and what you see when you run it.
by Alexander Riedel
Sat Jul 28, 2018 6:08 am
Forum: PowerShell Studio
Topic: GUI Script Hang with specific build engine.
Replies: 9
Views: 703

Re: GUI Script Hang with specific build engine.

Did you try enabling STA mode when packaging with the Forms engine?
by Alexander Riedel
Sat Jul 28, 2018 6:06 am
Forum: PowerShell GUIs
Topic: Execute PS1 file from compiled Form Project
Replies: 3
Views: 135

Re: Execute PS1 file from compiled Form Project

[Moved to GUI forum by moderator]
by Alexander Riedel
Wed Jul 25, 2018 6:39 am
Forum: PowerShell Studio
Topic: Datagridview not loading results after exe is built
Replies: 4
Views: 555

Re: Datagridview not loading results after exe is built

You left out what product version you are using. Additionally, since you say it only happens on some machines but not others, you need to include for which powershell version you build and what PowerShell version is on the machines where it doesn't work. Additionally we need some code or information...
by Alexander Riedel
Tue Jul 24, 2018 10:02 am
Forum: PowerShell Studio
Topic: Issue with 5.5.153 and System.Net.Sockets.TcpClient
Replies: 5
Views: 542

Re: Issue with 5.5.153 and System.Net.Sockets.TcpClient

James Vierra sent me some code that might help. It seems that there is a timing issue you do not take into account in your code: $hostname = 'mail' $domain = 'designedsystemsonline.com' $port = 143 $address = "$hostname.$domain" Write-Host $address Try{ $socket = New-Object System.Net.Sockets.TcpCli...
by Alexander Riedel
Tue Jul 24, 2018 9:25 am
Forum: PowerShell Studio
Topic: Issue with 5.5.153 and System.Net.Sockets.TcpClient
Replies: 5
Views: 542

Re: Issue with 5.5.153 and System.Net.Sockets.TcpClient

Ok, so two separate issues. The install problem you should post in the "Installer issues" forum. Someone will look into that there. As for your code, unfortunately you only post from the error downward, which won't help. The Visual Studio runtime has nothing to do with PowerShell or the .NET framewo...
by Alexander Riedel
Tue Jul 24, 2018 6:26 am
Forum: PowerShell Studio
Topic: Issue with 5.5.153 and System.Net.Sockets.TcpClient
Replies: 5
Views: 542

Re: Issue with 5.5.153 and System.Net.Sockets.TcpClient

If it involves sockets and ports its almost always a firewall issue. Did you have a firewall exception for ScriptDriver*.exe before? Also, are you sure $($NomPDU).$($ZoneDns) resolves to anything? Try a hard coded string to make sure. Uninstall and re-install virtually never solves anything so pleas...