L
Lachlan James
Hi,
I want to create a folder on a network share from within
my ASP.NET application. The app uses a custom
authentication mechanism which creates a Principal object
after looking up an external system.
It seems whenever the Directory.CreateDirectory() method
executes I get an UnauthorizedAccessException exception. I
suspect this is because the ASPNET account is a local
account which is unknown to the computer where the share
resides.
How can I progamatically gain access to that share to
create the dir?
I do not want to configure impersonation in the web.config
as I fear this is less secure.
Thanks, Lachlan
I want to create a folder on a network share from within
my ASP.NET application. The app uses a custom
authentication mechanism which creates a Principal object
after looking up an external system.
It seems whenever the Directory.CreateDirectory() method
executes I get an UnauthorizedAccessException exception. I
suspect this is because the ASPNET account is a local
account which is unknown to the computer where the share
resides.
How can I progamatically gain access to that share to
create the dir?
I do not want to configure impersonation in the web.config
as I fear this is less secure.
Thanks, Lachlan