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.

Thanks!

Bobby

link|improve this question
feedback

1 Answer

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.

link|improve this answer
I would go with UNC paths. - what do you mean? So how would you setup IIS to use UNC? – user16521 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
feedback

Your Answer

 
or
required, but never shown

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