Support Forums

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.
User avatar
odd@espedalen.me
Posts: 1
Joined: Sun Sep 06, 2015 11:58 pm

GUI Hangs when Download/Upload files to Azure Storage Account

Postby odd@espedalen.me » 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

HI,

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.
Attachments
AzureStorageUploadTest.psf
(51.99 KiB) Downloaded 88 times
User avatar
DevinL
Site Admin
Posts: 592
Joined: Mon Aug 17, 2015 2:25 pm

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

Postby DevinL » Fri Feb 12, 2016 12:02 pm

[POST MOVED TO POWERSHELL GUI FORUM BY MODERATOR]

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:

https://www.sapien.com/forums/viewtopic.php?f=12&t=9479&p=51526&hilit=Azure#p51526

In the post June links to a previous blog post that may solve the issue for you:

https://www.sapien.com/blog/2014/10/23/saving-passwords-for-add-azureaccount/
DevinL
SAPIEN Technologies, Inc.

Return to “PowerShell GUIs”

Who is online

Users browsing this forum: No registered users and 4 guests