Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#project在移动到其他PC后提供SecurityException_C#_Visual Studio 2012_Permissions_Shared Directory - Fatal编程技术网

C#project在移动到其他PC后提供SecurityException

C#project在移动到其他PC后提供SecurityException,c#,visual-studio-2012,permissions,shared-directory,C#,Visual Studio 2012,Permissions,Shared Directory,我的解决方案(.NET 4)中的一个项目使用专有dll通过Internet与某些工具进行通信。 我在VMware Windows 8虚拟机上工作,因为我是Mac用户;我在VMware共享文件夹中设置了Visual studio 2012项目目录(以便Time Machine可以备份我的解决方案)。一切正常。 然后我将解决方案转移到Windows7机器上。当我调试我的项目时,除了调用专有dll的代码外,其他一切都正常工作。例外情况是: "Request for the permission of



我的解决方案(.NET 4)中的一个项目使用专有dll通过Internet与某些工具进行通信。

我在VMware Windows 8虚拟机上工作,因为我是Mac用户;我在VMware共享文件夹中设置了Visual studio 2012项目目录(以便Time Machine可以备份我的解决方案)。一切正常。

然后我将解决方案转移到Windows7机器上。当我调试我的项目时,除了调用专有dll的代码外,其他一切都正常工作。例外情况是:

"Request for the permission of type 'System.Net.WebPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed." (System.Security.SecurityException)

如果我从头开始创建一个新的测试项目(也在同一个解决方案中)并使用dll,它将按预期工作。我试图将所有旧的项目文件粘贴到新的测试项目中,但没有成功。我认为这是因为文件“记住”它们出生在一个不安全的文件夹(VMware共享文件夹)中 我知道我可以使用Microsoft.NET Framework 2.0配置工具,但我不知道如何使用它。

你们能给我一些提示吗?


谢谢

检查文件的属性。。。有时,当您在计算机之间复制文件时,它们被标记为不安全,因此被阻止。。。看看你能不能解除他们的封锁


很遗憾,我在项目文件和文件夹上看不到“取消阻止”按钮。。。无论如何谢谢你!