Running on XP computer (even with .NET 3.5 SP1 installed) I could not get any of the other solutions listed here to work.
However, working from the same post of Charles Stirling that Davy Landman refers to, I finally succeeded in this option:
- Run the .NET 2.0 configuration tool (Settings ... Control Panel ... Administrative Tools ... .NET Framework 2.0 Configuration)
- Click "My Computer ... Runtime Security Policy ... Machine ... Code Groups ... All_Code"
- Create a new code group with the condition for membership in "Zone" = "Local Intranet" and assign the permission set to "FullTrust"
- Restart Visual Studio
After these steps, I can run tests, including after a restart and recovery.
EDIT: as described in this answer , you may need to install the .NET SDK (which is different from the .NET framework) in order to have .NET 2.0 on your system.
Eric Dec 17 '09 at 21:06 2009-12-17 21:06
source share