created new visual studio 2010 test project after build says could not load its own file or assembly

1

I have been working with creating a brand new test projects in VS 2010 tonight. Immediately after creating the project which VS 2010 supplies with a test file to show me how to work with it's attributes, I build and get the following:

Error loading ...my documents\visual studio 2010\Projects\TestProject1\bin\Debug\TestProject1.dll: Could not load file or assembly ...\my documents\visual studio 2010\Projects\TestProject1\bin\Debug\TestProject1.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

I don't have any dependencies or references. Why can't I build a test project in VS immediately after creation?

visual-studio-2010
mstest
asked on Stack Overflow Sep 3, 2012 by webapparchitect • edited Sep 3, 2012 by chaliasos

1 Answer

3

It might be a network permissions issue on where your project files were being saved.
Just saving stuff locally will fix your problem. Maybe!

Or you can try Unblocking Any Protected Files

answered on Stack Overflow Sep 3, 2012 by Tonix • edited Jan 7, 2014 by KyleMit

User contributions licensed under CC BY-SA 3.0