I posted this question in Security for Applications in Microsoft Windows, but I wasn't sure which forum is best, so I repost my question here too.
I get this trust exception on one of my users machine when he is not connected to our internal network when I call WindowsPrincipal.IsInRole.
To better understand the issue I wrote a small test-program. The test-program works without problem when he is in the office or connected via VPN, but each sid that is a domain group results in the trust exception when he isn't connected.
When I run the same program on my machine and without connection to our internal network it also works without problem.
I have extract the issue into a small program and this is all the code:
public partial class Form1 : Form
WindowsIdentity user = WindowsIdentity.GetCurrent();
View Complete Post