Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to configure a website, which has to show some content from the local drive (that's the main site: http:/ /mysite/) but also it has to show some info stored on another server (on the same domain), which is on a UNC shared folder(\otherserver\cache).

When I configure my Virtual Directory to take its content from the UNC folder under the mian site (http:/ /mysite/remote_cache/) it doesn't show its content.

I gave everyone full control on the shared folder, and read / list directory to the virtual directory.

Any clue on how to configure this properly??

share|improve this question
up vote 1 down vote accepted

You need to make sure that the web site / app pool / IIS is running under the security context of a user who has access to network services, which is not the case by default.

You can also turn anonymous access off for the virtual directory and use delegation to access the shared folder, however that also requires setting up delegation trusts for the server. You need to determine SPN's for your web service and add them to the machine account in Active Directory so that two-hop authentication can happen. Basically, this allows IIS to impersonate the client that is connecting to it and "borrow" that user's credentials to connect to the remote share. Here is an Technet article that talks about it.

share|improve this answer
Could you please elaborate a little bit more? What do you mean by context? security context? What does setting up delegation consist of? – Nicolas De Irisarri Jun 9 '09 at 20:10
No problem, edited with more detail. – squillman Jun 9 '09 at 20:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.