user726024
user726024

Reputation:

IIS application pool access to remote directory on network

I am trying to create file in remote directory on network within .ashx asp.net handler using File.Create(string path)

I am getting error that access to this path is denied. I tried to change identity setting application pool to 'network service', to 'local system', still getting access denied.

Via file system manager I can create files in mentioned remote directory with no problems.

Maybe someone had this kind of problem? What setting could be useful in application pool to solve this issue?

Thanks in advance!

Upvotes: 1

Views: 1624

Answers (1)

Shawn Steward
Shawn Steward

Reputation: 6825

You'll need to create a network user that has the appropriate rights, and assign the Application Pool Identity to use this network user.

Upvotes: 4

Related Questions