GUI Hangs when Download/Upload files to Azure Storage Account

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.
User avatar
Posts: 3
Joined: Sun Sep 06, 2015 11:58 pm

GUI Hangs when Download/Upload files to Azure Storage Account

Post by » Fri Feb 12, 2016 6:31 am

Product, version and build: PowerShell Studio 2015 Version 4.2.99
32 or 64 bit version of product: 64 bit
Operating system: Windows 8
32 or 64 bit OS: 64 bit


I’m making a GUI application from Windows PowerShell to download/upload files to a Azure Storage Account.
When I’m running the script in debug mode or the code directly in PowerShell ISE there is no problems with the script, but if I compile the script to EXE file, or run the PowerShell script from a bat file the process hangs after the file are finished downloaded/uploaded to Azure Storage Account. And I have to force close or kill the application to close it.

Have any one heard about this before that a script runs in debug or ISE but not as a script og an application?

The code for my test Application are attched to this post.
(51.99 KiB) Downloaded 119 times

User avatar
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: GUI Hangs when Download/Upload files to Azure Storage Account

Post by DevinL » Fri Feb 12, 2016 12:02 pm


I moved this to the GUI Forum so anyone else can chime in if they have any ideas. In the meantime, I believe this is related to a previous post:


In the post June links to a previous blog post that may solve the issue for you: ... reaccount/
SAPIEN Technologies, Inc.