23. March 2014
C# , Visual Studio
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).
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.
Even though you don't have to know PowerShell to use the tool, I strongly recommend it for all developers.
Download Tool with source code from here
UnblockFiles.zip (1,019.68 kb)