B
bren
My intranet web app is trying to display the list of files in a
directory showing their mod date.
I wrap the code that's retreiving the mode date with code to set
impersonation and I still get and access denied error.
This is the code that's fails and raises the error:
ModDate = File.GetLastWriteTime( TestPath ).ToString();
I'm confident that I am impersonating the current login.
The application requires integrated authentication with anonymous
authentication turned off.
To confirm for myself what login is trying to access the share, I
display the access denied error along with the login name using
System.Security.Principal.User.Identity.Name.
The login has full permissions on the directory and the files that are
being accessed.
Why is the error being raised?
thanks, Bren
directory showing their mod date.
I wrap the code that's retreiving the mode date with code to set
impersonation and I still get and access denied error.
This is the code that's fails and raises the error:
ModDate = File.GetLastWriteTime( TestPath ).ToString();
I'm confident that I am impersonating the current login.
The application requires integrated authentication with anonymous
authentication turned off.
To confirm for myself what login is trying to access the share, I
display the access denied error along with the login name using
System.Security.Principal.User.Identity.Name.
The login has full permissions on the directory and the files that are
being accessed.
Why is the error being raised?
thanks, Bren