In a C# 2008 desktop application, I need change the application since all the users are moving from one domain to new domain. The current application does not let the user access information under the new domain name.
To accomplish this goal, I would like to see what roles have been setup for those users starting with myself.
To accomplish this goal, I would like to know how to access those roles.
I do know that when I look at: Thread.CurrentPrincipal.Identity.Name, I can access the person's name. I also know that if I use System.Security.Principal.WindowsIdentity.GetCurrent(), I get the same information.
However can you tell me in code how to access the subcategories in the following:
Can you tell me in tell or show me in code how to accomplish this goal?
If you are using Active Directory, you can use the System.DirectoryServices.AccountManagement API to find details about a user and the groups he's associated with. You might want to try that (requires you to import System.DirectoryServices into your project).
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Attempted to read or write protected memory"
Above exception occurs when i add following lines to my code.
ioxml = new PosDamAx.IoXml();
i have added reference to PosDamAx.dll
i have chosen the debugger as x86.
secondly i have uncheck suppress jit optimization box.
Also i want to share that the same code start running when i try it on another PC.
Both have installed VS 2010 and have same settings of debugger But the only difference is of architecture , code is running fine on 32bit while mine is 64bit.
I have windows form , which contains treeview.
When i drag node and drop on windows explorer, i want event which will give me windows exploer path. Where I actually end node drag.
Does any body have solution for same.