Answered by:
Error 3005 when trying to Enable a System User

Question
-
Hello,
We use Dynamics 4.0 with Rollups 1&2.
We have SystemUsers from 3 diferents AD Domains declared in Dyanmics. (D1, D2 and D3)
We want to enable a SystemUser from domain D3, but when we try to enable him, we have a Dynamics error 3005 (See Event Viewer Log)
We don't have this error for the Systemusers from the two other domains.
This error appears for every user of this domain.
15 days ago, we were able to activate users from this domain (D3).
We think it's linked to an AD param that changed but we don't know where to look for.
Can someone help us please?
Event viewer log:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 9/22/2009 5:42:27 PM
Event time (UTC): 9/22/2009 3:42:27 PM
Event ID: 57bd0d79314c47758bfba785c441db7e
Event sequence: 1362
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT-1-128981004715083367
Trust level: Full
Application Virtual Path: /
Application Path: c:\inetpub\wwwroot\
Machine name: SERVERNAME
Process information:
Process ID: 6368
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: TargetInvocationException
Exception message: Exception has been thrown by the target of an invocation.
Request information:
Request URL: http://SERVERNAME/ORG/biz/users/edit.aspx?id={DAEB2A89-5092-DE11-BE0E-001E0B1DDF0A}
Request path: /ORG/biz/users/edit.aspx
User host address: 44.46.100.196
User: DOMAIN1\CRMADMIN
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 8
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IPluginExecutionContext context)
at Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
at Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
at Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
at Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
at Microsoft.Crm.Sdk.InProcessCrmService.Execute(Object request)
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.ExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.SetStateCommand.Execute()
at Microsoft.Crm.Web.BusinessManagement.SystemUserDetailPage.ChangeState(Object sender, DataEventArgs e)
at Microsoft.Crm.Application.Forms.DataEventProcessor.Raise(FormEventId eventId, FormState state, IUser user, String objectId, Entity entity)
at Microsoft.Crm.Application.Forms.AppForm.RaiseDataEvent(FormEventId eventId)
at Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity)
at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, String formType)
at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity)
at Microsoft.Crm.Web.BusinessManagement.SystemUserDetailPage.ConfigureForm()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Wednesday, September 23, 2009 1:03 PM
Answers
-
I finally have the solution:
The value of this register key: HKEY_LOCAL_MACHINE\Software\Microsoft\MSCRM\AutoGroupManagementOff
must have the value 1, and it correct the problem.- Marked as answer by jim66 Thursday, September 24, 2009 3:00 PM
Thursday, September 24, 2009 3:00 PM
All replies
-
seems like the ad user info has chached since the user where disabled. what happens if you create a brand new user on D3 and try to add him to CRM?
Hasret Smajlovic- Proposed as answer by iCRM Thursday, October 1, 2009 1:59 PM
Thursday, September 24, 2009 8:16 AM -
Unfortunely, this action is quite impossible, because this probleme is concerning the production environment and we cannot modify this AD.
I've retried to activate this user (directly from the "All Disabled user" view, and not from this particular user form) , and now i've the following error:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 9/24/2009 10:15:03 AM
Event time (UTC): 9/24/2009 8:15:03 AM
Event ID: cfe182f795db44a9b7ba3fab7c86f40f
Event sequence: 3140
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT-1-128982050063438479
Trust level: Full
Application Virtual Path: /
Application Path: c:\inetpub\wwwroot\
Machine name: SERVERNAME
Process information:
Process ID: 5812
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: TargetInvocationException
Exception message: Exception has been thrown by the target of an invocation.
Request information:
Request URL: http://servername/org/_grid/cmds/dlg_activate.aspx?iObjType=8&iTotal=1&iIndex=0&iId={DAEB2A89-5092-DE11-BE0E-001E0B1DDF0A}
Request path: /org/_grid/cmds/dlg_activate.aspx
User host address: ip address
User: D1\CRMADMIN
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 8
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at Microsoft.Crm.Application.Utility.Util.RaiseXMLError(Exception exception)
at Microsoft.Crm.Dialogs.ActivateDialogPage.ConfigureForm()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Could this problem be related to the lack of this line in the web.config, as it is for workflow problems? (corrected by Rollup 3)
<authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Globalization" TypeName="CultureInfo" Authorized="True"/>Thursday, September 24, 2009 9:23 AM -
I finally have the solution:
The value of this register key: HKEY_LOCAL_MACHINE\Software\Microsoft\MSCRM\AutoGroupManagementOff
must have the value 1, and it correct the problem.- Marked as answer by jim66 Thursday, September 24, 2009 3:00 PM
Thursday, September 24, 2009 3:00 PM