0

I am running an web application on IIS 6, Windows Server 2003 and it runs under local user IUSR_MachineName.

We have a shared folder, for example \\server\path somewhere on our network and only one active directory user has read/write access to it. How can I read/write files from asp.net from/to this folder with this user's active directory credential?

I could change the user under which IIS runs, but I can't (read - not allowed). Now I am reading about impersonation, but any tips on this would be much appreciated...

Edit - I need those basic functionality on the shared folder:

  • Directory.Delete
  • Directory.Exists
  • File.Exists
  • File.Delete
  • DirectoryInfo.GetFiles
  • FileUpload.SaveAs
  • ...
sventevit
  • 4,766
  • 10
  • 57
  • 89

1 Answers1

3

change the Application Pool Identity to the user who is allowed to access that folder.

Furqan Hameedi
  • 4,372
  • 3
  • 27
  • 34