I often maintain state in the database using the person's login account as the primary key, for stuff like personalization. Getting the account in an asp.net app is a snap, as long as IIS is configured correctly. The problem is how to get the account in a windows app downloaded from an iis server. Ive tried
System.Environment.Usernam
an
System.Security.Principal.WindowsIdentity wid;
wid = System.Security.Principal.WindowsIdentity.GetCurrent()
userName=wid.Name.ToString()
Both work when I run the .exe from IIS locally, both throw an exception when I place the app on a server and access it from my local browser
Is this possible, without setting the browser's security settings?