Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > ASP.NET 2.0 with ADAM - COMException when accessing roles

Thread Tools

ASP.NET 2.0 with ADAM - COMException when accessing roles
Posts: n/a

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
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

Request information:
Request URL: http://localhost/AIDIT/inici.aspx
Request path: /AIDIT/inici.aspx
User host address:
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[]
at System.Type.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, CultureInfo culture)
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.Cal lback(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)

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AzMAN/ADAM-Roles.IsUserInRole() issues Codifier ASP .Net Security 1 01-19-2010 11:10 PM
ADAM/AzMan Does Not Create Roles/Tasks mkc ASP .Net Security 0 10-19-2006 08:21 PM
Application level roles + Item level roles... how to do it? Jéjé ASP .Net Security 0 09-26-2005 11:06 PM
How to solve COMException Ajith Nair ASP .Net 2 07-22-2005 01:55 AM
LDAP ComException (0x8002801C): Error accessing the OLE registry Jody Gelowitz ASP .Net 1 10-26-2004 05:08 PM