Give FullTrust to UNC share for Visual Studio 2012 and .Net 4.0

久未见 提交于 2019-11-30 04:51:25

问题


Everytime I try to open a solution that is located on a UNC share I get this dialog:

I've tried using the caspol.exe utility that Hanselman talks about here, but it doesn't seem to work. At least not for a .Net 4 project runing in Visual Studio 2012. Running the .NET 4 version of caspol with the same arguments I get this message:

WARNING: The .NET Framework does not apply CAS policy by default. Any settings
shown or modified by CasPol will only affect applications that opt into using
CAS policy.

Please see http://go.microsoft.com/fwlink/?LinkId=131738 for more information.

I followed that link but nothing seemed to make sense to me.

To give a little context about what I'm doing, I have Windows 7 running as VM (via VirtualBox) on my mac. I setup an SMB network share on my mac which I'm able to connect to successfully from my VM. However trying to load the solution keeps giving me this error. I know I can "un-check the box" and load everything but I want to know how to fully trust the location.


回答1:


Can you disable this in "Tools>Options>Projects and Solutions>Warn user when project location is not trusted"? This setting was actually broken in VS 2010, but it's indicated as fixed now for 2012.



来源:https://stackoverflow.com/questions/11936471/give-fulltrust-to-unc-share-for-visual-studio-2012-and-net-4-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!