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?
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