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
  • ...
4

1 回答 1

3

将应用程序池标识更改为允许访问该文件夹的用户。

于 2012-06-27T12:55:51.810 回答