Error message using Netdiag.exe = NETDIAG.EXE - ENTRY POINT NOT FOUND

I'm running a 2003 server which is also running the DHCP/DC/DNS/A-Directory all in one due to a tight budget. When preparing to install Exchange 2003 as the first exchange server on the same machine as this machine has never had exchange on before I'm using the prep tools DCdiag.exe which has no problems the server pass's all its tests, however its a completely differant story when running Netdiag.exe. The very instant you start NetDiag you get an error box which is Titled:

NETDIAG.EXE - ENTRY POINT NOT FOUND (the actuall error is)

The procedure entry point DnsGetPrimaryDomain_UTF8 could not be located in the dynamic link library DNSAPI.dll.

Ive used depends.exe which shows a whole range of errors, but I guess I'm just not geeky enough in this area to understand what the info it is giving out, obviously something is missing but I have no idea how to correct this, which means I cannot continue wh=ith the install of Exchange 2003.

Any knowledgeable ideas would be more than welcome as Ive searched every where for a solution & come up with total blanks.

Many thanks
Roy
LVL 9
rpartingtonAsked:
Who is Participating?
 
Milind00Connect With a Mentor Commented:
I verified the list of tools shipped with Windows 2003 support tools from
http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

Looks like Microsoft is stopped shipping NetDiag.exe.

May be I got it from initial CDs of Windowos 2003.
0
 
Milind00Commented:
I remember, I encountered same problem. But that time I was running NetDiag.exe which was copied from other machine. But when I installed Windwos Support tools for Windwos 2003, then it started working fine.
0
 
rpartingtonAuthor Commented:
Thanks for the speedy response, but I have support tools installed from the 2003 cd NETDIAG.EXE is not included with it for some strange reason, I downloaded it from microsoft direct & installed it on the server (same error) I then installed it on a client (same error) when I run depends.exe which is included in the support tools & point depend to netdiag.exe to run it, depends.exe clearly shows the following error relating to Netdiag:

(Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.)

The module concerned is DNSAPI.dll
Within DNSAPI.dll depends shows that the problem areas are as follows:

DnsGetHostName_UTF8
DnsGetMaxNumberOfAddressesToRegister
DnsGetPrimaryDomainName_UTF8
DnsIsAdapterDomainNameRegistrationEnabled
DnsIsDynamicRegistrationEnabled

Its certianly a heavy duty fault which Ive got to hold my hand up & admit Ive no idea what it is & no idea where to even start looking for a fix either.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Netman66Commented:
If this is a multi-homed server (2 NICs) - make sure the internal NIC is at the top of the binding order.  Also, make sure that NIC only points to 127.0.0.1 for DNS.

Advise.
0
 
rpartingtonAuthor Commented:
Thanks for the response I appreciate it NETMAN66.
It is multi homed, however the internal nic is at the top of the bindings as I got caught out with that a few months ago but worked out that the internal had to be at the top of the bindings. The internal nic's DNS was not set to the loop back but Ive just set it to the 127.0.0.1 as suggested but still the exact same error.
0
 
Netman66Commented:
run this:

dcdiag /test:registerindns

from the server

Advise.
0
 
Netman66Commented:
Also run this:

netdiag /test:dns

Advise.
0
 
Milind00Commented:
What is the version of DNSAPI.dll on your machine?
0
 
rpartingtonAuthor Commented:
Hey thanks for all the suggestions lads, you have kept me really busy.
Netman66,
I for some strange reason cannot run either dcdiag or netdiag from CMD it shows that they are both not recognized as an internal or external command operable program or batch file,

even though they are both installed under Program files\Resource Kit. I can however run Dcdiag by double clicking on it & pausing the screen before the out put disappears, Net diag just gives the normal error.

Milind00
The version of DNSAPI.dll is =
5.2.3790 0
Date 30/7/03
Located in System32

Again thanks lads for all your suggestions, funny enough I'm learning new things via this annoying error & getting more grey hairs with it by the hour.
0
 
Netman66Commented:
Check the path statement.

At a command prompt type: PATH

If the path doesn't include reference to C:\Program Files\Resource Kit then add it in the System variable in the Properties of My Computer\Advanced.

Run the utilities again.

0
 
rpartingtonAuthor Commented:
The results of the above two Netman66 are
dcdiag /test:registerindns
...............................ROY Failed test RegisterInDNS

However
running: dcdiag /fix the server "ROY" passes all the the connectivity tests

Running:
netdiag /test:dns
gives the same old error message instantly.

I even ran sfc /scannow to check to see if the DNSAPI.dll file was corrupt, still no joy, yeh I know I was kind of clutching at straws with that one.
Its got me beat thats for sure


0
 
Milind00Commented:
As you said DNSAPI.dll  version is 5.2.3790 0
Version for the  NetDiag.exe should be the same.

I have Windows 2003 box, on whcih DNSAPI.dll  and NetDiag.exe are same (5.2.3790). So it works fine.

Windwos 2000 Support tool  NetDiag.exe comes with version 5.0.2185. This exe does not work with DNSApi.dll  version 5.2.3790.

You can see issue with some exported funtion using Depends.

So make sure that you have NetDiag.exe (5.2.3790). This comes with Windows 2003 Support tools.
0
 
rpartingtonAuthor Commented:
Milind00
Who ever you are
Where ever you are
Give your self the biggest pat on the back & have a damn good drink on me.
You guessed it,
It was the old W2K version of Netdiag also DCdiag & funnily enough even though everything was installed originally off the 2003 server CD there were quite a few other old versions in the support tools folder as well.
I had like a clown never looked in the Support.cab file on the CD to check for the Netdiag tool as I noticed it was not installed in the "Support folder" & then went to the same website you went to "Microsoft Windows Server 2003 Resource Kit Tools" & saw that NetDiag was not included so I downloaded it seperately from else where from Microsoft,
THAT WAS OBVIOUSLY WHERE MY MISTAKE WAS, if only I had looked in the "Support.cab" file on the CD, its obvious now, I feel like banging my head against the wall in disgust at myself, but we live and learn.

Anyone reading this in the future with the same problem, think yourself lucky that this is now here to help you as this was an easy mistake to make but it could of been costly, as I was ready to use an interim server to back everything up on, & then flatten the problem server & reinstall from scratch.

Once again Milind00
If only you knew how pleased I am this is now working,
Have a drink on me.
The 500 points are yours with pleasure.
*Your a star*

Many thanks

Roy Partington
Swindon
England
0
 
Milind00Commented:
Thanks for the Drink.  :)
0
 
dugodugoCommented:
I too have run into the same problem.  I have NETDiag V:5.0.2195.1340 and dnsapi.dll is V:5.2.3790.0....Now how to find the right version of NetDiag....MicroSquish...gotta love these guys!!!
0
 
Suburb-ManCommented:
I too was having the same problem, but I wanted NetDiag to check my DNS, and then I noticed
the new 2003 tool "DNSDIAG".

Just wanted to point it out.
0
 
DGSDTechCommented:
Our problem occurred when we updated our Windows 2000 server to Windows 2003. The OS update, updated all the DLL's associated with the Support Tools. Milind00 your solution worked, reinstalling the support tools from Windows 2003 install cd.
0
 
Milind00Commented:
Good to know this.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.