locked
Adding new user error RRS feed

  • Question

  • Hi,

    I am having trouble adding users to my CRM test environment. I restore the database a few times a month from live and this is the first time I've had this issue. I've tried re-restoring but to no avail. The error in the trace log is below. It seems to point at an error with Active Directory communication but I'm struggling to see why. Any help would be great!

    Cheers, Neil.

    [2010-03-22 16:13:13.7] Process: w3wp |Organization:54474b77-c535-df11-8bec-002219895115 |Thread:   10 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ActiveDirectoryUtility.FindUser
    >Unable to get find user DEVDOM\neil: System.Runtime.InteropServices.COMException (0x8007203A): The server is not operational.
    >
    >   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
    >   at System.DirectoryServices.DirectoryEntry.Bind()
    >   at System.DirectoryServices.DirectoryEntry.get_AdsObject()
    >   at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
    >   at System.DirectoryServices.DirectorySearcher.FindOne()
    >   at Microsoft.Crm.Application.Utility.ActiveDirectoryUtility.FindUser(String domainAccountName)
    [2010-03-22 16:13:13.7] Process: w3wp |Organization:54474b77-c535-df11-8bec-002219895115 |Thread:   10 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ErrorInformation.LogError
    >MSCRM Error Report:
    --------------------------------------------------------------------------------------------------------
    Error: Object reference not set to an instance of an object.

    Error Message: Object reference not set to an instance of an object.

    Source File: Not available

    Line Number: Not available

    Request URL:

    Stack Trace Info: [NullReferenceException: Object reference not set to an instance of an object.]
       at Microsoft.Crm.Application.Utility.ActiveDirectoryUtility.TryGetProperty(SearchResult result, String propertyName)
       at Microsoft.Crm.Application.Utility.ActiveDirectoryUtility.TryGetStringProperty(SearchResult result, String propertyName)
       at Microsoft.Crm.Application.Utility.ActiveDirectoryUtility.PopulateSystemUserProperties(Entity user)
       at Microsoft.Crm.Application.WebServices.UserManagementService.UserManager.AddUsers(String userXml, Guid[] roles, Boolean sendInvitation)


    [2010-03-22 16:13:13.7] Process: w3wp |Organization:54474b77-c535-df11-8bec-002219895115 |Thread:   10 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | AddUsersResult.AddUserFailureWithError
    >Unexpected error adding user Neil McDonald: System.NullReferenceException: Object reference not set to an instance of an object.
    >   at Microsoft.Crm.Application.Utility.ActiveDirectoryUtility.TryGetProperty(SearchResult result, String propertyName)
    >   at Microsoft.Crm.Application.Utility.ActiveDirectoryUtility.TryGetStringProperty(SearchResult result, String propertyName)
    >   at Microsoft.Crm.Application.Utility.ActiveDirectoryUtility.PopulateSystemUserProperties(Entity user)
    >   at Microsoft.Crm.Application.WebServices.UserManagementService.UserManager.AddUsers(String userXml, Guid[] roles, Boolean sendInvitation)

    Monday, March 22, 2010 4:26 PM

Answers

  • I've got it working again although I don't really know why. Our DNS servers had 2 new forwarders added a few days ago, and by removing them it all works fine again. Strange how this didn't effect the live server which uses the same DNS servers.
    • Marked as answer by Neil McD Wednesday, March 24, 2010 2:59 PM
    Monday, March 22, 2010 5:17 PM

All replies

  • I've got it working again although I don't really know why. Our DNS servers had 2 new forwarders added a few days ago, and by removing them it all works fine again. Strange how this didn't effect the live server which uses the same DNS servers.
    • Marked as answer by Neil McD Wednesday, March 24, 2010 2:59 PM
    Monday, March 22, 2010 5:17 PM
  • Could you mark your question as answered?
    My blog : http://mscrmtools.blogspot.com
    You will find:
    Bulk Delete LauncherView Layout replicator
    ISV.Config Manager Form Javascript Manager
    Assembly RecoveryAnd others (use tool tag on my blog)
    Wednesday, March 24, 2010 9:42 AM
    Moderator