Thursday, July 22, 2010

“The Network Path Was Not Found” When Installing our .NET Node Agent

We ran into a problem installing some custom software we call the .NET Node Agent on machines that were in a new COMPANYQA Windows domain. After some troubleshooting, we found the issue to be related to how we figure out what domain the machine is in. We do this logic so we can insert the correct .NET Node Agent service account (COMPANYMGMT|COMPANY\svcNodeAgnet) into the machine’s local Administrators group. If a machine is in COMPANYMGMT, we need to add COMPANYMGMT\svcNodeAgnet. If the machine is in COMPANY, or now COMPANYQA, then we need to insert COMPANY\svcNodeAgnet. (We could have asked a human to make this distinction during install time, but asking a human to do anything around here causes more trouble than it’s worth.)

We use .NET’s System.DirectoryServices namespace to surf Active Directory (AD). We use the machine’s parent to grab Properties. When trying to get Properties from the parent (DirectoryEntry.Parent.Properties) we continually got the message “The Network Path Was Not Found.” After some in-depth troubleshooting, we found that we had to add companyqa.mycompany.com to the DNS suffix list. The only values were company.mycompany.com and so we couldn’t find the LDAP.companyqa.mycompany.com AD server.

In Windows 2008 Server, this setting is under Control Panel - Network Connections - Local Area Connections – Internet Protocol Version 4 (TCP/IPv4) - Properties – DNS – Append These DNS Suffixes. After we added companyqa.mycompany.com we were on our way.

3 comments:

Anonymous said...

Just think of those tory burch pumps different styles, shapes, constructions, decorations Fashion in Moncler Outlet expressed in different ways gender, age, economic strata and social echelon of its wearer. North Face Jackets For Women Fashion can facilitate or hinder comfort health and ease of movement. Franklin & Marshall It reflects cultural ritual, morality and sexual liberation. It responds to foreign influences, Onitsuka Tiger Shoes political turmoil, economic stability and artistic Ugg Boots Outlet sensibility.

Anonymous said...

Fashion can facilitate or hinder comfort health and ease of movement. Franklin & Marshall It reflects cultural ritual, morality and sexual liberation. It responds to foreign influences, Onitsuka Tiger Shoes political turmoil, economic stability and artistic Ugg Boots Outlet sensibility. true religion sale It is made by the latest scientific developments and technological innovations. It is influenced by popular culture and leading personalities. Everything North Face Jackets For Men that shapes our world affects and inspires Moncler Sale fashion and by looking at historical fashion within the context Jackets For Men" of when it was made we can understand how it came

Unknown said...

useful blogs on TFS