Visual Studio 中的项目位置不受信任错误

发布于 2024-08-28 08:23:40 字数 410 浏览 4 评论 0原文

这是一个非常简单的错误,原因很明显 - 我映射了一个网络驱动器,并且我正在从中打开解决方案。 Visual Studio 给我这个错误。

我尝试用谷歌搜索,令我惊讶的是,找不到解决办法。我正在运行 Visual Studio 2008。

我在 google 上找到的解决方案说我应该运行 Mscorcfg.msc,但不幸的是,我的计算机上似乎没有该文件。我的控制面板中似乎也没有任何与 .NET Framework 相关的内容。当然,我可以很好地运行 .NET 应用程序,因此该框架是存在的。

另一个解决方案建议运行caspol.exe,尽管这是.NET 2,我也尝试过但无济于事。

有什么想法吗?

我应该补充一点,我正在尝试将路径添加到任何受信任的列表中。

Quite a simple error, and the reason is obvious - I mapped a network drive, and I am opening the solution from it. Visual Studio gives me this error.

I tried googling, and to my surprise, couldn't find a fix. I am running Visual Studio 2008.

The solutions I found on google say I should run Mscorcfg.msc, but unfortunately, I don't seem to have that file anywhere on my computer. Nor do I seem to have anything in my control panel relating to .NET Framework. I can of course, run .NET applications fine, so the framework exists.

Another solution suggested running caspol.exe, although this is .NET 2, which I also tried to no avail.

Any ideas?

I should add that I am trying to add the path to whatever trusted list there is.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

柠檬心 2024-09-04 08:23:40

caspol 是用来抑制这些警告的正确工具。这是我使用的命令:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\caspol -m -pp off -cg 1.2 FullTrust

这将为本地 Intranet 代码组授予完全信任。为了达到预期的效果,计算机必须配置为将共享识别为位于 Intranet 区域中。

请注意,此命令适用于 .NET 2.0、3.0 和 3.5。 (3.0 和 3.5 的安全设置由 2.0 的 caspol 实用程序控制)。

caspol is the right tool to use to suppress these warnings. Here is the command I use:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\caspol -m -pp off -cg 1.2 FullTrust

This will grant full trust to local intranet code group. In order for this to have the desired effect, the computer must be configured to recognize the share as being in the intranet zone.

Note that this command is for .NET 2.0, 3.0, and 3.5. (Security settings for 3.0 and 3.5 are controlled by the caspol utility for 2.0).

影子的影子 2024-09-04 08:23:40

如果服务器位于“Internet”区域,请尝试将其添加到“Internet 选项”中的“受信任的站点”。 (您可以在 Windows 资源管理器的状态栏中看到该区域。)

If the server is in the "Internet" zone, try adding it to the "Trusted sites" in your Internet Options. (You can see the zone in the status bar in Windows Explorer.)

瀞厅☆埖开 2024-09-04 08:23:40

尝试在“控制面板”下查看 -> .NET Framework 配置实用程序的管理工具。从这里您应该能够按照有关此主题的大量谷歌结果中的说明进行操作。

Try looking under Control Panel -> Administrative Tools for the .NET Framework Configuration utilities. From here you should be able to follow the instructions from the plethora of google results on this topic.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文