N
Nick
I'm developing an intranet app, and want to get the current user name for
logging purposes. I've turned off anonymous access, and turned on windows
authentication in the IIS config. The apps web.config file has
authentication mode set to windows, and 'identity impersonate' is set to
true.
When I try and get the default.aspx page, IE returns an error page with an
'Access is denied.' error. (Even if I try direct from the webserver, logged
on as the administrator.)
Where else do I have to set the permissions?
Thanks,
Nick
PS: I'm using this line in the code to get the user:
System.Security.Principal.WindowsIdentity.GetCurrent().Name() - Is this the
right one to use?
logging purposes. I've turned off anonymous access, and turned on windows
authentication in the IIS config. The apps web.config file has
authentication mode set to windows, and 'identity impersonate' is set to
true.
When I try and get the default.aspx page, IE returns an error page with an
'Access is denied.' error. (Even if I try direct from the webserver, logged
on as the administrator.)
Where else do I have to set the permissions?
Thanks,
Nick
PS: I'm using this line in the code to get the user:
System.Security.Principal.WindowsIdentity.GetCurrent().Name() - Is this the
right one to use?