Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grant IIS Express permission to access network drive in VMWare

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?

Things I've tried

  • Running Visual Studio as an administrator
  • Setting iisexpress.exe to always run as an administrator
  • Looking around in the applicationhost.config file
  • Attempting to set write permissions on the network drive (right click on the drive and go to properties but no "Security" tab available)
  • A few other things that I can't remember that I tried during the hours of searching for a solution

Known last resorts that I'd prefer to avoid

  • Copying the project files from the external hard drive to the VM's storage space and vice versa

  • Running the projects on a full IIS server

Other things to know

  • Using Visual Studio 2013 and MVC 5

  • Using IIS Express 7.5

  • VMWare Workstation 11

  • 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?)

  • Guest OS is Windows 7 Professional

  • Host OS is Debian Jessie RC1

  • External HDD is formatted as NTFS, although it shows up as HGFS on the network drive

  • I can read and write to files on the network drive, it's just IIS Express that is having trouble

like image 783
Garrett S Holbrook Avatar asked Feb 13 '15 05:02

Garrett S Holbrook


People also ask

What is accessa permission in vCenter?

A permission is set on an object in the vCenter object hierarchy. Each permission associates the object with a group or user and the group's or user's access role.

What permissions are assigned to folders and files in IIS?

The tables in this section list the default New Technology File System (NTFS) permissions that are assigned to certain folders and files. These folders and files are installed together with IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, and IIS 10.0. Equivalent to Full control. Applies to subfolders and files only. Equivalent to Full control.

Why doesn't IIs show mapped drives on network drives?

Network drives aren't connected to a computer; they're connected to a session. IIS is running the code under a different user account, in a different session. So even if it's on the same computer, it won't see the mapped drives from the OP's session. Solution 3

Who is authorized to log in to the vCenter Server System?

Initially, only the administrator user for the vCenter Single Sign-On domain is authorized to log in to the vCenter Server system. The default domain is vsphere.local and the default administrator is [email protected].


1 Answers

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.

like image 183
Lex Li Avatar answered Oct 01 '22 09:10

Lex Li