Caspol,VM,映射驱动器,VS2010 [英] Caspol, VMs, Mapped Drives, VS2010

查看:118
本文介绍了Caspol,VM,映射驱动器,VS2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(在尝试进行其他各种破解后更新了!)

(updated this after various other attempts to crack it!)

我有一个装有VS2010的VM(Win7 32位).当我有一些VS2010项目以及要构建的位置时,我从主机(VM 64位)将驱动器映射到了驱动器(不是vm共享文件夹'cos,在其他情况下我发现了写延迟问题)他们. (我也尝试过从XP 32位主机映射,但是有完全相同的问题).

I have a VM (Win7 32 bit) with VS2010 installed. I have a drive mapped (not a vm shared folder 'cos I found a write-latency issue in other scenarios) into it from the host machine (VM 64 bit), when I have some of my VS2010 projects and to where I am building them. (I've also tried mapped from an XP 32 bit host as well, but have exactly the same problem).

我的一个项目正在寻求加载程序集.如果我将该程序集复制到本地驱动器,该程序将无法正常运行.如果我将其保留在映射的驱动器上,则会出现错误

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:///G:\BusinessTier\bin\Debug\BusinessTier.dll

我不确定是否需要运行Caspol. SO上还有另一篇文章,指出我的文章表明VS2008 SP1 +消除了对caspol wrt网络驱动器的需求,但我想知道是否仍需要这样做,因为我在VM中.

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.

我尝试在主机上运行以下命令,以尝试向VM内的VS授予权限,但无济于事

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 -url file://g:\* FullTrust
C:\Windows\Microsoft.NET\Framework\v4.0.30128>caspol -m -ag 1.2 -url file://g:\* FullTrust
C:\Windows\Microsoft.NET\Framework\v4.0.30128>caspol -m -ag 1.3 -url file://g:\* FullTrust
C:\Windows\Microsoft.NET\Framework\v4.0.30128>caspol -m -ag 1.5 -url file://g:\* FullTrust

其中g:*是映射到VM的驱动器(作为驱动器z:)

where g:* is the drive being mapped into the VM (as drive z:)

同样,在各种博客文章(A)之后,我尝试了

Similarly, following various blog postings (A), I have tried

  • 将本地驱动器号替换为unc
  • 引用file://unc和/或驱动器号,例如"file://g:*"
  • 添加各种数量的正/反斜杠,例如file://g:/*,带有unc和本地路径

但是(如果是红色鲱鱼),如果我在VM中创建一个简单的winforms exe并将其保存到g:驱动器上,它似乎可以运行

However (and this could be a red herring), if I create a simple winforms exe in the VM and save it onto the g: drive it seems to run okay

我想念的东西(除了理解!)?

What am I missing (apart from understanding!)?

我开始怀疑问题是否是主机vm上的权限问题,但是我已对该共享上的所有人"赋予了完全控制"权限. (尽管我可以读写该文件夹,所以TMM的权限看起来像是正确的).这对于远程连接的用户是否足够好?

I am beginning to wonder whether the problem is a permissions issue on the host vm, but I have given Full control permissions to Everyone on that share. (Although I can read and write to that folder so TMM the permissions look like they are probably correct). Should that be good enough for a user who is connecting remotely?

Thx

西蒙(Simon)

A-还有很多其他博客条目,它们提供了替代解决方案,但似乎没有一个适合我.但其他人在(也许这可能会对其他人有所帮助)

A - There are a whole host of other blog entries which offer alternative solutions, none of which appear to work for me. but others have had success with e.g. (perhaps this may help others)

  • https://julianscorner.com/wiki/programming/caspol_network_share
  • http://www.cmagic.biz/wordpress/2006/02/27/caspol-is-your-friend-do-you-trust-me/
  • http://communities.vmware.com/message/1083305
  • http://blogs.imeta.co.uk/sstrong/archive/2009/01/29/589.aspx

推荐答案

尝试使用主机名而不是网络驱动器(例如

try to execute caspol using the hostname instead of the network drive, e.g.

caspol -m -ag 1.3 -url "file://\.vmware-host/*" FullTrust

这篇关于Caspol,VM,映射驱动器,VS2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆