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

Is it possible to configure an ASP.NET application under IIS 7 so it can read files stored in a mapped network drive? I'm not trying to serve up the contents of the drive. I simply need to read the contents within the ASP.NET application. I've searched the Web and haven't really found a solid answer. The questions in my mind are:

  1. Is this possible via configuration (i.e. I cannot modify the client code)?
  2. If so, what are the step by step instructions.

If it is not possible, I'm fine with that. I already know UNC paths work but using them drastically changes the work flow.



share|improve this question

Not that I know of - because mapped drives blong to a session. You COULD try spawning the net use command cfrom th aspnet ap and see what happens.

I would go with UNC paths.

share|improve this answer
I would go with UNC paths. - what do you mean? So how would you setup IIS to use UNC? – MSSucks May 23 '11 at 6:43
You dont. You just use a UNC path in the stream open command. – TomTom May 23 '11 at 8:07

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.