E
Erik
I'm trying to get the login name for the user, and this is the code I use:
string userName = WindowsIdentity.GetCurrent().Name;
This works fine when the program is launched locally or from a network
drive. However, when I run the program as a smart client from our intranet
server the program fails on this line. How do I determine the windows user
when running my program as a smart client?
Thanks,
Erik.
string userName = WindowsIdentity.GetCurrent().Name;
This works fine when the program is launched locally or from a network
drive. However, when I run the program as a smart client from our intranet
server the program fails on this line. How do I determine the windows user
when running my program as a smart client?
Thanks,
Erik.