授予IIS Express权限以访问VMWare中的网络驱动器 [英] Grant IIS Express permission to access network drive in VMWare
问题描述
我在VMWare中有一个Windows 7虚拟机,用于使用默认的IIS Express服务器开发ASP.NET MVC 5 Web应用程序.我想将项目保存在外部硬盘驱动器上,可以通过共享文件夹/网络驱动器在虚拟机中访问该项目.但是,当我运行应用程序时,IIS Express无法访问项目目录中的web.config文件.它在正确的文件夹中查找,因此我很确定这是一个权限问题.如何授予IIS Express文件访问网络驱动器上文件的权限?
I have a Windows 7 virtual machine in VMWare that I'm using to develop ASP.NET MVC 5 Web applications with the default IIS Express server. I like to keep my projects saved on an external hard drive which I can access in the virtual machine through a shared folder / network drive. However, when I run my applications, IIS Express cannot access my web.config files in the project directory. It's looking in the right folder so I'm pretty sure this is a permissions issue. How can I grant IIS Express file access to the files on my network drive?
我尝试过的事情
- 以管理员身份运行Visual Studio
- 将iisexpress.exe设置为始终以管理员身份运行
- 在applicationhost.config文件中四处浏览
- 尝试在网络驱动器上设置写权限(右键单击驱动器,然后转到属性,但没有安全性"选项卡)
- 我不记得我在寻找解决方案的过程中尝试过的其他事情
我不愿避免的已知不得已的手段
-
将项目文件从外部硬盘驱动器复制到VM的存储空间,反之亦然
Copying the project files from the external hard drive to the VM's storage space and vice versa
在完整的IIS服务器上运行项目
Running the projects on a full IIS server
其他要知道的事情
-
使用Visual Studio 2013和MVC 5
Using Visual Studio 2013 and MVC 5
使用IIS Express 7.5
Using IIS Express 7.5
VMWare工作站11
VMWare Workstation 11
虚拟机也位于外部硬盘驱动器上,因此我无法将USB连接到来宾,我需要通过共享文件夹访问硬盘驱动器的其余部分(尽管有疑问,可能会对硬盘进行分区驱动器会解决这个问题?)
The virtual machine is also on the external hard drive, so I can't connect the usb to the guest, I need to access the rest of the hard drive through shared folders (although doubtful, maybe partitioning the hard drive would fix this?)
来宾操作系统是Windows 7 Professional
Guest OS is Windows 7 Professional
主机操作系统是Debian Jessie RC1
Host OS is Debian Jessie RC1
外部HDD格式化为NTFS,尽管它在网络驱动器上显示为HGFS
External HDD is formatted as NTFS, although it shows up as HGFS on the network drive
我可以读写网络驱动器上的文件,只是IIS Express遇到了问题
I can read and write to files on the network drive, it's just IIS Express that is having trouble
推荐答案
来宾和主机之间的VMware/VirtualBox共享文件夹有点使用Windows的映射驱动器功能.但是,IIS和IIS Express都不支持映射的驱动器.如果可能的话,请使用同步工具(例如Dropbox)或简单地使用Git在两者之间共享位.
VMware/VirtualBox's shared folder between the guest and host is kind of using mapped drive feature of Windows. However, neither IIS nor IIS Express supports mapped drives. If possible, use a sync tool, such as Dropbox, or simply Git to share bits between the two.
这篇关于授予IIS Express权限以访问VMWare中的网络驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!