G
Guest
Hi
I have a strange problem with my asp.net application. I am using the
following code to see if a user is in a windows group:
if(!System.Threading.Thread.CurrentPrincipal.IsInRole(System.Configuration.ConfigurationSettings.AppSettings.Ge(@"WindowsGroupForVaspUsers")))
I also have this row in my config file:
<add key="WindowsGroupForVaspUsers" value="adcsth1800\VASP"/>
The strange thing is that this works fine in one application but in another
application (I run locally on the same computer) I need to use slash instead
on back slash for the code to work. I need to change the config file to this:
<add key="WindowsGroupForVaspUsers" value="adcsth1800/VASP"/>
Why???
Thanks
Julia
I have a strange problem with my asp.net application. I am using the
following code to see if a user is in a windows group:
if(!System.Threading.Thread.CurrentPrincipal.IsInRole(System.Configuration.ConfigurationSettings.AppSettings.Ge(@"WindowsGroupForVaspUsers")))
I also have this row in my config file:
<add key="WindowsGroupForVaspUsers" value="adcsth1800\VASP"/>
The strange thing is that this works fine in one application but in another
application (I run locally on the same computer) I need to use slash instead
on back slash for the code to work. I need to change the config file to this:
<add key="WindowsGroupForVaspUsers" value="adcsth1800/VASP"/>
Why???
Thanks
Julia