Link to home
Create AccountLog in
Avatar of petermagee

asked on

nlaapi.dll Bad image or contains an error

I have windows 7 running on a laptop.  I get this repeated error when I try to do most things - open a web page, install software, run the windows 7 install option which keeps original files (is this called repair or custom?)

<program that is trying to run> - Bad Image
c:\windows\system32\nlaapi.dll is either not designed to run on Windows or it contains an error.  Try installing the program again using the original installation media or contact your system administrator or the software vendor for support.

So I would think that c:windows\system32\Nlaapi.dll has been corrupted somehow.  I know that in the winsxs directory there are directories with very long names and several of them contain versions of nlaapi.dll.  It seems clear to me that these are for different hardware confirgurations.

1.  Are the versions under winsxs actually copies of the nlaapi.dll file, or is the windows\system32\nlaapi.dll in fact just a pointer to the correct version in winsxs. (If this is the case, then there is no point trying to restore a clean version of nlaapi.dll)

2.  how do I find out which version is the right version for my hardware configuration?

Please refrain from suggesting that I reinstall windows.  I know that I can do that, honestly.  
Avatar of Teargas
Flag of Germany image

i can't tell you if it is a copy or not but have you already tryed to run sfc /scannow which scans all system files and repairs corrupted.

start -> type cmd, open as admin -> type "sfc /scannow"
Avatar of petermagee


Thank you for that.  I ran that and it says it could not reproject corrupted file [ml:48{24}. l:46{23}"\??\c:windows\syswow64"\[1:20{10}]"nlaapi.dll"; source file in store is also corrupted

It also has two other messages saying that it  cannot repair member file, and then long details.  Is it worth typing them in here?  

Any hope?

This is not good, I suppose?  
try to backup your data and if you want you can perform a repair install of windows.

for a nice detailed information how to do the repair installation and some more guesses you can read this article, seems to be kind of the same problem with a corrupt file with that sfc message.
and here is a link where you see how you can "read" the sfc log file.
Thank you for those.  

It seems that re-installing windows is the only option.  Microsoft are such a bunch of morons that they write a major piece of software that cannot be repaired from the original installation media, aren't they?  
the thing is, i personally had it restalled it anyway because if the OS breaks like that that some system relevant dll is missing and can't be restored, something really went wrong and the feeling to work with a system which is kinda weird is really annoying me then, i like more the thinking of a nice clean windows installation with no repaired crap in it.

but that is just my personal opinion.
Yeah, I buy that.  I just wish you could do it without having to take backups.  Windows is so poor at being able to distinguish between user configurable files and optons and system stuff that getting back to the same state I am in today will take ages.  I mean like email accounts, preferences and setup files.  Totally and utterly bonkers.  
Avatar of Teargas
Flag of Germany image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Thanks for you advice and help.
you are welcome, just sad that it turns out to a reinstallation.