Test Run Deployment Issue

I replaced one of my test files with an image from the internet. I was a bit surprised when I got the following error when trying to run a test that was working just minutes before:

Failed to queue test run ‘MYCOMPUTER 2008-12-08 15:11:35’: Test Run deployment issue: The location of the file or directory ‘Tests\Material\TestPic.jpg’ is not trusted.


I then googled around and found the following thread on the MSDN forums: http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/1a9c13b3-e8b9-4619-9159-3edbfc67b8a9/


What you need to do is unblock the file. Go to your deployment files folder and open the file properties:


Blocked file



Notice the security note on the bottom. Click on the Unblock button and also uncheck the readonly checkbox.


After pressing OK Visual Studio will again accept the file.