Question

I have an issue with our ASP.net application not being able to read files from a remote directory. Our users log into our application using Forms Authentication, so no AD accounts are used in logging them in.

I have added the machine accounts the machines to the share, as I have a local service on the machine that can write to it and a SQL server able to read/write to the share with a machine account.

However, our asp.net app, running on the same server as the service above, is is not able to do this. I have tried impersonation set to true, but this does not work unless I provide an AD account. Once provided, the share works fine.

I can't move the share to the IIS server due to size constraints.

Is there anyway to allow easy access or do I need to take the interop approach?

Was it helpful?

Solution

The account the application pool runs under needs access on the remote folder. Add that account to the security tab(not only share tab) of the remote folder.

Or, try running the apppool as the AD account you used for impersonation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top