IIS7 Create a virtual directory for files on another server

I port some ASP.Net applications from IIS6 to IIS7 and everything went well. I am trying to create several virtual directories on 1 server that will point to files on another server. In IIS6, all I had to do was do anonymous authentication using a user with file access. In IIS7, I cannot get it to work. I am setting up a virtual directory with a username and password, but I get error 500.19 "Cannot read the configuration file due to insufficient permissions." I cannot imagine that I really need to put the web.config file into a directory that contains only images and application files. If I click on a directory in IIS Manager, I get this error in the web.config file for everything that I click, for example, the "Authentication" section. Moreover,writing to files from a virtual directory seems to work very well, so I don’t think that I have a problem with access anyway. I gave the directory access to the IIS_IUSR group.

+5
source share
1 answer

If you are using a virtual directory that points to a UNC share, go to the advanced settings for the virtual directory, then select a specific user account that has the appropriate permissions to access the folder. It works for my virtual directory in my asp.net application, which points to a UNC share on the remote server.

+3
source

All Articles