isInRole

From: arjun (arjun.chakraborty_at_gmail.com)
Date: 11/30/04


Date: 29 Nov 2004 22:47:30 -0800

Hi All,

I am developing a A webpage to be seen in a page viewer
webpart(Sharepoint 2003).The page is supposed to check for the current
user name and then check the user membership in some local group
membership.But here I am failing .The isinRole call on the Principal
object is returning true
for buitin groups and some local groups but not ALL.
I read in one of the previous threads that this was a bug in Framework
1 in which all groups are not retrieved.

http://support.microsoft.com/default.aspx?scid=kb;en-us;q321562

SP3 takes care of it.
However I have Framework 1.1 ...So the patches are not working...
Can anyone tell me if this bug is fixed in v1.1?
The code I am using is here is something like this
HttpContext.Current.User.IsInRole("<machinename>\<group name>")
I have tried all combo of group names even the case sensitive ones....

Please do point out if something is amiss?
My box is in an active directory domain.The configuration of my box is
:Windows Server 2003,.net Framework v1.1,Windows SharePoint Services
2.0,SharePoint Portal Server 2003

Thanks in Advance,
Arjun



Relevant Pages

  • isInRole Problem
    ... I am developing a A webpage to be seen in a page viewer ... the user membership in some local group membership.But here I am ... I read in one of the previous threads that this was a bug in Framework ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Replace a framework class
    ... changing a class in the Framework in a way that will effect all ... there is a bug in the original IBM PC BIOS Int 10 video interface. ... The new class MyDataSet will have all the functionality of the DataSet class ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework)
  • Re: TabControl page order
    ... Thanks for the code Chris but that didn't seem to help. ... This doesn't look like a Compact Framework bug. ... When I look at the generated code I can see that Visual Studio is ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Dialog Result / Modal Form Problem
    ... It is very unlikely that it is 'bug' in the framework or a missing dll. ... the corresponding DialogResult OK and cancel properties. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Radiobuttonlist onclick event
    ... Thanks very much for both your responses. ... > There is a bug in the framework but not related to this question. ... >> More people read the newsgroups than read my email. ...
    (microsoft.public.dotnet.framework.aspnet)