6

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

enter image description here

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.

Micah
  • 111,873
  • 86
  • 233
  • 325
  • 2
    Can you disable this in "Tools>Options>Projects and Solutions>Warn user when project location is not trusted"? This setting was actually [broken](http://connect.microsoft.com/VisualStudio/feedback/details/604282/trusting-network-shares-in-visual-studio-2010-net-4-0) in VS 2010, but it's indicated as fixed now. – vcsjones Aug 13 '12 at 14:40
  • @vcsjones could you please post this as an answer in order to have a valid answer to this question? – ccellar Sep 13 '12 at 11:19
  • that share is still not fully trusted... how come caspol doesn't work any more? – tofutim Apr 19 '14 at 01:09

1 Answers1

12

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.

vcsjones
  • 138,677
  • 31
  • 291
  • 286