ASP.NET 2.0 with ADAM - COMException when accessing roles

Discussion in 'ASP .Net Security' started by oriol.ardevol@gmail.com, Jun 8, 2007.

  1. Guest

    Hi,

    I've configured an ASP.NET 2.0 application to use
    ActiveDirectoryMembershipProvider for the authentication and
    AuthorizationStoreRoleProvider for retrieving the role information.

    The application succesfully authenticates the users with my Active
    Directory server, the problem comes when trying to access the role
    information. The server returns us the following exception when
    calling the method Roles.GetAllRolles() from our application:

    System.Runtime.InteropServices.COMException: This operation can not be
    performed on the current domain. (Exception from HRESULT: 0x80070577)

    Any help will be appreciated, we need to retrieve the role information
    from the active directory. Thanks in advance.

    Also, in the server's event viewer there's some additional info which
    I'll attach in case it might help.

    Event Type: Warning
    Event Source: ASP.NET 2.0.50727.0
    Event Category: Web Event
    Event ID: 1309
    Date: 08/06/2007
    Time: 12:13:45
    User: N/A
    Computer: W2K3DNAVARRO01
    Description:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 08/06/2007 12:13:45
    Event time (UTC): 08/06/2007 10:13:45
    Event ID: 1046127f9798492ca4801d93b40e6f9b
    Event sequence: 24
    Event occurrence: 2
    Event detail code: 0

    Application information:
    Application domain: /LM/W3SVC/1/Root/AIDIT-1-128257707778281250
    Trust level: Full
    Application Virtual Path: /AIDIT
    Application Path: C:\Inetpub\wwwroot\AIDIT\
    Machine name: W2K3DNAVARRO01

    Process information:
    Process ID: 3032
    Process name: w3wp.exe
    Account name: AIDITAD\Administrator

    Exception information:
    Exception type: TargetInvocationException
    Exception message: Exception has been thrown by the target of an
    invocation.

    Request information:
    Request URL: http://localhost/AIDIT/inici.aspx
    Request path: /AIDIT/inici.aspx
    User host address: 127.0.0.1
    User: randolph.carter
    Is authenticated: True
    Authentication Type: Forms
    Thread account name: AIDITAD\Administrator

    Thread information:
    Thread ID: 1
    Thread account name: AIDITAD\Administrator
    Is impersonating: False
    Stack trace: at System.RuntimeType.InvokeDispMethod(String
    name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[]
    byrefModifiers, Int32 culture, String[] namedParameters)
    at System.RuntimeType.InvokeMember(String name, BindingFlags
    bindingFlags, Binder binder, Object target, Object[] providedArgs,
    ParameterModifier[] modifiers, CultureInfo culture, String[]
    namedParams)
    at System.Type.InvokeMember(String name, BindingFlags invokeAttr,
    Binder binder, Object target, Object[] args, CultureInfo culture)
    at
    System.Web.Security.AuthorizationStoreRoleProvider.CallMethod(Object
    objectToCallOn, String methodName, Object[] args)
    at System.Web.Security.AuthorizationStoreRoleProvider.InitApp()
    at System.Web.Security.AuthorizationStoreRoleProvider.GetAllRoles()
    at System.Web.Security.Roles.GetAllRoles()
    at Inici.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot
    \AIDIT\Inici.master.cs:line 22
    at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
    Object o, Object t, EventArgs e)
    at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
    sender, EventArgs e)
    at System.Web.UI.Control.OnLoad(EventArgs e)
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     
    , Jun 8, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jody Gelowitz
    Replies:
    1
    Views:
    3,726
    Jody Gelowitz
    Oct 26, 2004
  2. Michael Herman \(Parallelspace\)

    ASP.NET 2.0, MS AD/ADAM and Authorization Manager (AzMan)

    Michael Herman \(Parallelspace\), Jul 6, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    906
    Michael Herman \(Parallelspace\)
    Jul 9, 2005
  3. =?Utf-8?B?SmFtZXMgQ29sZW1hbg==?=

    ADAM and AzMan with ASP.NET 2.0

    =?Utf-8?B?SmFtZXMgQ29sZW1hbg==?=, Feb 24, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    609
    =?Utf-8?B?SmFtZXMgQ29sZW1hbg==?=
    Feb 24, 2006
  4. mkc

    ADAM/AzMan Does Not Create Roles/Tasks

    mkc, Oct 19, 2006, in forum: ASP .Net Security
    Replies:
    0
    Views:
    256
  5. Codifier

    AzMAN/ADAM-Roles.IsUserInRole() issues

    Codifier, Jan 19, 2010, in forum: ASP .Net Security
    Replies:
    1
    Views:
    1,025
    Codifier
    Jan 19, 2010
Loading...

Share This Page