[In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/pabloperalta] Error “Unable to obtain DNS hostname of Active Directory domain controller with ntdsa object name..” when opening CRM Deployment Manager - Pablo Peralta's Blog
Wednesday, November 30, 2011 12:09 AM pablop

Error “Unable to obtain DNS hostname of Active Directory domain controller with ntdsa object name..” when opening CRM Deployment Manager

Hi,

Just came up with this same error twice so I decided to share what worked for me in both cases.

 

[ERROR]

After installing Dynamics CRM, when opening Deployment Manager, the following Exception arises: “Unable to obtain DNS hostname of Active Directory domain controller with ntdsa object name …

 

mmc

Stack trace

Unable to obtain DNS hostname of Active Directory domain controller with ntdsa object name "CN=NTDS Settings,CN=CRM,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=mydomain,DC=com".
Exception type:
System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException
at System.DirectoryServices.ActiveDirectory.Utils.GetReplicaList(DirectoryContext context, String partitionName, String siteName, Boolean isDefaultNC, Boolean isADAM, Boolean isGC)
at System.DirectoryServices.ActiveDirectory.DomainController.FindAllInternal(DirectoryContext context, String domainName, Boolean isDnsDomainName, String siteName)
at System.DirectoryServices.ActiveDirectory.Domain.get_DomainControllers()
at Microsoft.Crm.Admin.AdminService.ConfigDBSecurity.SystemUserService.QueryDomainControllers(Domain currentDomain, String accountName)
at Microsoft.Crm.Admin.AdminService.ConfigDBSecurity.SystemUserService.GetCaseSafeName(String domain, String accountName)
at Microsoft.Crm.Admin.AdminService.ConfigDBSecurity.SystemUserService.GetCaseSafeName(String name)
at Microsoft.Crm.Admin.AdminService.ConfigDBSecurity.SystemUserService.GetIdsFromName(String userName)
at Microsoft.Crm.Admin.AdminService.ConfigDBSecurity.SecurityRoleService.TryVerifyUser(String userName, SecurityRole role)
at Microsoft.Crm.Tools.Admin.SystemUserController.TryVerifyUser()
at Microsoft.Crm.Tools.Admin.DMSnapInHelper.DisplayMessageBoxIfCurrentUserIsNotSystemUser(Console console)
at Microsoft.Crm.Tools.Admin.DMSnapIn.OnInitialize()
at Microsoft.ManagementConsole.SnapInBase.Initialized()
at Microsoft.ManagementConsole.Internal.SnapInClient.Microsoft.ManagementConsole.Internal.ISnapInClient.Initialize(ISnapInPlatform snapInPlatform)
at Microsoft.ManagementConsole.Executive.SnapInInitializationOperation.OnStart()
at Microsoft.ManagementConsole.Executive.RunningOperationsTable.EnqueueOperation(Operation operation)
at Microsoft.ManagementConsole.Advanced.FrameworkSnapInFactory.Microsoft.ManagementConsole.Advanced.ISnapInFactory.CreateSnapIn(Int32 bookkeepingId, String snapInKey, Object& snapIn)

After closing the above window, the following error comes up and the MMC snap-in unloads:

 

mmc2

[SOLUTION]

What worked for me is to add the Preferred Domain Controller  value to MS CRM registry entries:HKLM\Software\Microsoft\MSCRM

For doing so, follow the next steps:

  • Step 1. Right Click and click on NewString value as "PreferredDc"
  • Step 2. Add the value to PreferredDc is YourDomainControllerName you can find this in your AD by typing the command in your cmd prompt echo %logonserver%

Hope it saves you some time,

PP [twitter: @pabloperalta]

Filed under: , , ,

Comments

# Error ???Unable to obtain DNS hostname of Active Directory domain controller with ntdsa object name..??? when opening CRM Deployment Manager - Pablo Peralta's Blog

Pingback from  Error ???Unable to obtain DNS hostname of Active Directory domain controller with ntdsa object name..??? when opening CRM Deployment Manager - Pablo Peralta's Blog

# re: Error “Unable to obtain DNS hostname of Active Directory domain controller with ntdsa object name..” when opening CRM Deployment Manager

Thursday, December 08, 2011 9:10 PM by Trim

Thanks a million. This worked for me and resolved my hours of headache. My installation had been working well for ever and then I get this error from nowhere today.

Thanks

# Agenda MVP (19 al 25 de Diciembre 2011)

Monday, December 19, 2011 1:38 PM by MVP Factor

Lunes, 19 de diciembre Optimización de infrastructura SQL Server 1pm -6GMT Webcast

# Dynamics CRM COMException: The server is not operational

Wednesday, December 21, 2011 11:53 PM by Pablo Peralta's Blog

Hi, I experienced this error today in a customer. No users could log in to CRM. Everything was working

# Dynamics CRM COMException: The server is not operational

Thursday, December 22, 2011 12:39 AM by Pablo Peralta’s blog

Hi, I experienced this error today in a customer. No users could log in to CRM. Everything was working

# re: Error “Unable to obtain DNS hostname of Active Directory domain controller with ntdsa object name..” when opening CRM Deployment Manager

Tuesday, January 31, 2012 9:42 AM by Jason Lloyd

That worked Perfectly. Thanks for the post, if only I found it earlier.

# re: Error “Unable to obtain DNS hostname of Active Directory domain controller with ntdsa object name..” when opening CRM Deployment Manager

Tuesday, April 24, 2012 1:04 PM by Pardeep Khunger

Thanks

# re: Error “Unable to obtain DNS hostname of Active Directory domain controller with ntdsa object name..” when opening CRM Deployment Manager

Thursday, May 10, 2012 6:20 PM by Jerry Weinstock

Hi Pablo

I searched on the error, this page came up near the top, went to it first and in 5 minutes we had your suggestion implemented and we were moving forward with the install.

Thanks

Jerry

# re: Error “Unable to obtain DNS hostname of Active Directory domain controller with ntdsa object name..” when opening CRM Deployment Manager

Thursday, May 10, 2012 7:17 PM by pablop

Hi Jerry,

It's really nice to know this was helpful for you.

Thank you a lot for your comment!

PP

Leave a Comment

(required) 
(required) 
(optional)
(required)