Visual Studio Projects Stuck on Loading

When I was on holidays, I received an email from one of my team members asking if I could help him identify the cause of a defect in one of the initiatives he’s working on. Since I didn't have my work laptop, I asked him to replicate the bug in a sample project, zip it and upload it to my home server. When I unzipped the file and opened the solution in Visual Studio my project got stuck on loading.

I tried the usual troubleshooting steps (rebooting the machine, restarting the IDE and disabling all add-ons etc..) and nothing worked.

I started digging into the bin directory and lo and behold all assemblies were blocked because the original zip file was downloaded from the internet (the block is stored in :Zone.Identifier to be specific).

Blocked file

Fortunately, removing the block is easy; this simple PowerShell command: (gci C:\Ditectory-Path -Recurse | unblock-file) will unblock all files in the directory. After resolving the bug, I created a simple WPF app to unblock files instead of using PowerShell command directly.

File Unblocker

Even though you don't have to know PowerShell to use the tool, I strongly recommend it to all developers.

Download Tool with source code from here (1,019.68 kb)

Comments (2) -

Hussain Murgab 5/27/2014 4:33:54 PM

Thank you for saving my day with this solution.

George Brown 6/4/2014 2:24:13 PM

I know I wouldn't have had looked in the dlls property page.
Thanks a bunch.

Comments are closed