Question

I was messing around with RhinoMocks this morning and couldn't run my tests because RhinoMocks.dll was not in a "trusted location". The assembly is in my c:\documents and settings\\My Documents\Visual Studio 2008\Projects (and so on) folder. What's the deal?

Was it helpful?

Solution

Did you download a zip file from the internet and then extract it using the standard explorer tools. I think this marks the directory as untrusted and Visual studio detects this.

OTHER TIPS

From my reading, there are a number of things that can cause this. The fix for my particular situation, however, was to "unblock" the DLL file. Because I had downloaded the zip from the Internet, XP had put a block on the file. Right-clicking the file and clicking "Unblock" did the trick.

Right click the file or location and choose Properties. At the very bottom, you should see the button "Unblock". Click it and press OK.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top