Visual Studio 2008抱怨受信任的位置。该怎么办?

时间:2022-06-14 06:59:04

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?

今天早上我正在乱搞RhinoMocks而无法运行我的测试,因为RhinoMocks.dll不在“受信任的位置”。程序集在我的c:\ documents和settings \\ My Documents \ Visual Studio 2008 \ Projects(等等)文件夹中。这是怎么回事?

3 个解决方案

#1


1  

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.

您是否从互联网上下载了一个zip文件,然后使用标准资源管理器工具将其解压缩。我认为这标志着目录不可信,Visual Studio会检测到这一点。

#2


1  

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.

从我的阅读中,有许多事情可以导致这种情况。但是,针对我的特定情况的修复是“解锁”DLL文件。因为我从互联网上下载了zip,所以XP在文件上放了一个块。右键单击该文件并单击“取消阻止”即可。

#3


0  

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

右键单击文件或位置,然后选择“属性”。在最底部,您应该看到“取消阻止”按钮。单击它,然后按确定。

#1


1  

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.

您是否从互联网上下载了一个zip文件,然后使用标准资源管理器工具将其解压缩。我认为这标志着目录不可信,Visual Studio会检测到这一点。

#2


1  

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.

从我的阅读中,有许多事情可以导致这种情况。但是,针对我的特定情况的修复是“解锁”DLL文件。因为我从互联网上下载了zip,所以XP在文件上放了一个块。右键单击该文件并单击“取消阻止”即可。

#3


0  

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

右键单击文件或位置,然后选择“属性”。在最底部,您应该看到“取消阻止”按钮。单击它,然后按确定。