Caspol, VMs, Mapped Drives, VS2010
Posted
by Simon Woods
on Stack Overflow
See other posts from Stack Overflow
or by Simon Woods
Published on 2010-05-10T10:41:36Z
Indexed on
2010/05/10
10:44 UTC
Read the original article
Hit count: 645
visual-studio
|caspol
Hi
I have a VM (Win7 32 bit) with VS2010 installed. I have a drive mapped into it from the host machine (VM 64 bit), when I have some of my VS2010 projects and to where I am building them.
One of my projects is looking to load an assembly. If I copy that assembly to a local drive, the program ruins fine. If I leave it on the mapped drive, then I get an error
Exception is: FileLoadException - Could not load file or assembly 'file:///Z:\BusinessTier\bin\Debug\BusinessTier.dll
I am unsure whether or not I need to run Caspol. There is another post on SO which pointed me to a post which indicated that VS2008 SP1+ removed the need for caspol wrt network drives, but I wondered if I still needed to because I am in a VM.
I have tried running the following on the host machine in an attempt to give permissions to VS inside the VM, but to no avail
C:\Windows\Microsoft.NET\Framework\v4.0.30128>caspol -m -ag 1.2 -url file://g:\*
FullTrust
where g:* is the drive being mapped into the VM (as drive z:)
What am I missing (apart from understanding!)
Thx
Simon
© Stack Overflow or respective owner