MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

active directory intregation configuration   (Mono Support )

Viewed 83952 time(s), 24 post(s) 1/2/2014 11:17:13 AMby neeraj
neeraj

neeraj

1/6/2014 10:42:55 AM

Server Error in '/MymonoX' Application.


While trying to retrieve the authorization groups, an error (5) occurred. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.DirectoryServices.AccountManagement.PrincipalOperationException: While trying to retrieve the authorization groups, an error (5) occurred.

Source Error:





An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:





[PrincipalOperationException: While trying to retrieve the authorization groups, an error (5) occurred.]
System.DirectoryServices.AccountManagement.AuthZSet..ctor(Byte[] userSid, NetCred credentials, ContextOptions contextOptions, String flatUserAuthority, StoreCtx userStoreCtx, Object userCtxBase) +1458
System.DirectoryServices.AccountManagement.ADStoreCtx.GetGroupsMemberOfAZ(Principal p) +220
System.DirectoryServices.AccountManagement.UserPrincipal.GetAuthorizationGroupsHelper() +50
MonoSoftware.MonoX.ActiveDirectoryRoleProvider.GetRolesForUser(String username) +225

[ProviderException: Unable to query Active Directory.]
MonoSoftware.MonoX.ActiveDirectoryRoleProvider.GetRolesForUser(String username) +635
System.Web.Security.RolePrincipal.IsInRole(String role) +180
System.Web.Configuration.AuthorizationRule.IsTheUserInAnyRole(StringCollection roles, IPrincipal principal) +134
System.Web.Configuration.AuthorizationRule.IsUserAllowed(IPrincipal user, String verb) +268
System.Web.Configuration.AuthorizationRuleCollection.IsUserAllowed(IPrincipal user, String verb) +203
System.Web.UI.WebControls.WebParts.PersonalizationProvider.DetermineUserCapabilities(WebPartManager webPartManager) +320
System.Web.UI.WebControls.WebParts.WebPartPersonalization.Load() +92
System.Web.UI.WebControls.WebParts.WebPartPersonalization.LoadInternal() +29
System.Web.UI.WebControls.WebParts.WebPartManager.OnInit(EventArgs e) +452
System.Web.UI.Control.InitRecursive(Control namingContainer) +358
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1441



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272





This content has not been rated yet. 
110 Reputation 17 Total posts
neeraj

neeraj

1/6/2014 1:30:34 PM
role is feteched and synchronise in the role table but I got this error



Server Error in '/MymonoxNK' Application.


Unknown error (0x80005000)Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Runtime.InteropServices.COMException: Unknown error (0x80005000)

Source Error: 





An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace: 





[COMException (0x80005000): Unknown error (0x80005000)]
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +439337
System.DirectoryServices.DirectoryEntry.Bind() +36
System.DirectoryServices.DirectoryEntry.get_AdsObject() +31
System.DirectoryServices.PropertyValueCollection.PopulateList() +22
System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName) +96
System.DirectoryServices.PropertyCollection.get_Item(String propertyName) +141
System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer() +298
System.DirectoryServices.AccountManagement.PrincipalContext.DoDomainInit() +37
System.DirectoryServices.AccountManagement.PrincipalContext.Initialize() +124
System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx() +31
System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate) +14
System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, IdentityType identityType, String identityValue) +86
System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(PrincipalContext context, IdentityType identityType, String identityValue) +29
MonoSoftware.MonoX.ActiveDirectoryRoleProvider.GetRolesForUser(String username) +196

[ProviderException: Unable to query Active Directory.]
MonoSoftware.MonoX.ActiveDirectoryRoleProvider.GetRolesForUser(String username) +635
System.Web.Security.RolePrincipal.IsInRole(String role) +180
System.Web.Configuration.AuthorizationRule.IsTheUserInAnyRole(StringCollection roles, IPrincipal principal) +134
System.Web.Configuration.AuthorizationRule.IsUserAllowed(IPrincipal user, String verb) +268
System.Web.Configuration.AuthorizationRuleCollection.IsUserAllowed(IPrincipal user, String verb) +203
System.Web.UI.WebControls.WebParts.PersonalizationProvider.DetermineUserCapabilities(WebPartManager webPartManager) +320
System.Web.UI.WebControls.WebParts.WebPartPersonalization.Load() +92
System.Web.UI.WebControls.WebParts.WebPartPersonalization.LoadInternal() +29
System.Web.UI.WebControls.WebParts.WebPartManager.OnInit(EventArgs e) +452
System.Web.UI.Control.InitRecursive(Control namingContainer) +358
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Control.InitRecursive(Control namingContainer) +183
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1440



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
This content has not been rated yet. 
110 Reputation 17 Total posts
neeraj

neeraj

1/7/2014 2:09:01 PM
Hi Denis,

LDAP://10.82.128.20/OU=Leighton Welspun India,OU=Group_IT,OU=Leighton International,DC=leightonint,DC=internal
It seems to be there is a problem with my LDAP connection string, because there is blank space between name like Leighton Welspun
Is there any separator we can use in between the blank spaces.
just like in html we are using %20.
This content has not been rated yet. 
110 Reputation 17 Total posts
denis

denis

1/8/2014 7:21:03 PM
It should not be the cause of your problems. Did you try to remove everything after the IP address, as suggested in the blog post?
This content has not been rated yet. 
7207 Reputation 956 Total posts
1 2 3