Regsvr32 failure

K

Kilbane

Hi everybody
My machine is a Dell Desktop 2.53GHz/512MB RAM running on WinXP Home
with SP2. It runs well and is totally virus and spyware-free.
However the regsvr32 command occasionally fails to carry out its
intended function.
The following two error messages are seen:
1. DllRegisterServer in xyz.dll failed. Return code was 0x80004005
2. xyz.dll was loaded but the DllRegisterServer entry point was not
found. The file cannot be registered.


I find the MS KB articles on these issues to be somewhat vague and are
certainly insufficiently specific to allow me to either diagnose or fix

this registration problem.
I should mention also that while I can register, for example,
jscript.dll in my own Admin user account, the same operation on the
same file in a limited user account gives the first error shown above.


Can anybody help me to understand what the problem is here?


TIA
Paul
 
D

Dave Patrick

1.) LoadLibrary can fail if the DLL is not in the specified path, or if the
specified path is incorrect. LoadLibrary can also fail if one of the
dependencies of the DLL that you are trying to load is not met; in other
words, if a dependent DLL is not present or is not in the specified path.

A.) If the dll has dependencies or is dependent on others, then it's
important to replace with the same version.
B.) If the dll exports the DLLRegisterServer, DllUnregisterServer functions
then it's best to unregister

regsvr32.exe /u "PathToDLL"
then after replacement
regsvr32.exe "PathToDLL"

INFO: How Regsvr32.exe Registers and Unregisters COM DLLs
http://support.microsoft.com/default.aspx?kbid=207132

Explanation of Regsvr32 Usage and Error Messages
http://support.microsoft.com/default.aspx?kbid=249873

You can run depends.exe against the DLL to check dependencies

You'll find depends.exe within
http://www.dependencywalker.com/

2.) Appears the dll contains no DLLRegisterServer or DllUnregisterServer
functions hence the error message. In other words it doesn't need to be
registered.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Hi everybody
| My machine is a Dell Desktop 2.53GHz/512MB RAM running on WinXP Home
| with SP2. It runs well and is totally virus and spyware-free.
| However the regsvr32 command occasionally fails to carry out its
| intended function.
| The following two error messages are seen:
| 1. DllRegisterServer in xyz.dll failed. Return code was 0x80004005
| 2. xyz.dll was loaded but the DllRegisterServer entry point was not
| found. The file cannot be registered.
|
|
| I find the MS KB articles on these issues to be somewhat vague and are
| certainly insufficiently specific to allow me to either diagnose or fix
|
| this registration problem.
| I should mention also that while I can register, for example,
| jscript.dll in my own Admin user account, the same operation on the
| same file in a limited user account gives the first error shown above.
|
|
| Can anybody help me to understand what the problem is here?
|
|
| TIA
| Paul
|
 
K

Kilbane

Dave
Thank you for your comprehensive reply to my post.
Actually, the resolution of this problem seems to be considerably more
complicated than I had thought and your suggestions are directing me
into (what are for me) uncharted waters.
However, I am very willing to learn and have examined in detail the
articles in the links you posted.
I should mention that the problem I have is an inability to register
the files jscript.dll and vbscript.dll in the limited user account on
my computer. This is despite the fact that I can register them with
ease from my own account (Admin).
Using Dependency Walker, I "profiled" (via F7) the registration of
jscript.dll from my own account. Despite highlighting quite a number of
errors in the log, the registration succeeded (as it always does from
my account). All of the error messages involved the file MSCTF.DLL
I then ran exactly the same Dependency profile from the limited user
account. This time the registration failed (again, as it always does).
Strangely, the SAME error messages were logged for this attempt as from
my account. Once again they all involved MSCTF.DLL
I carried out a search for MSCTF.DLL and it does NOT appear to be
available either on the computer nor on the WinXP installation disk
(which does not contain SP2).

Despite these stumbling attempts to get to grips with Dependency
Walker, it does seem at last that I'm on a path that is likely to
resolve this long-running problem.
I would really appreciate any further pointers that you can cast in my
direction.
Many thanks and best wishes
Paul
 
K

Kilbane

Hi David
Thanks for your comment.
I was unaware that registration of DLL files from a user account is not
possible.
Does this apply also if the user account has Admin status? I tried
upgrading the status of the limited user account but this did not
improve matters.
Actually, my (perceived) need to register jscript.dll and vbscript.dll
from the limited user account arises as part of my long-running
attempts to get WMP 10 to launch from that account (which it won't
despite launching perfectly normally from my own account).
Thanks for any further comments
Paul
 
D

David Candy

It depends on the file. JScript is a system file and writes to where users aren't allowed. Users are called Limited Users is the kiddie interface of XP (but they are Users not Limited Users - no such thing as Limited Users).

You will never sucessfully register this file as a User. You may have other problems but you won't solve or diagnose them as a User.

Only tell the story from the admin point of view.

1st Message means Unspecified Error
2nd Message can be caused by a corrupted file or a crashed module (what a exe/dll is called when loaded in memory) in memory. I presume xyz is Jscript (so we know the dll is registerable - only COM dlls are)?

I have jscript loaded by msimn and explorer (shell process). Type in CMD
tasklist /m /fi "modules eq jscript.dll"

and terminate all processes that have jscript loaded. Try to register it again (use cmd as you can't use explorer without loading jscript). If the file is corrupted type sfc /scannow.
 
D

David Candy

When I say depends on the file I do mean it is possible to have per user files but isn't common. Users can't stuff with the system or other users at all. However you can install stuff as long as it doesn't touch the system or another user (and that's rare).

--
--------------------------------------------------------------------------------------------------
Goodbye Web Diary
http://margokingston.typepad.com/harry_version_2/2005/12/thank_you_and_g.html#comments
=================================================
"David Candy" <.> wrote in message It depends on the file. JScript is a system file and writes to where users aren't allowed. Users are called Limited Users is the kiddie interface of XP (but they are Users not Limited Users - no such thing as Limited Users).

You will never sucessfully register this file as a User. You may have other problems but you won't solve or diagnose them as a User.

Only tell the story from the admin point of view.

1st Message means Unspecified Error
2nd Message can be caused by a corrupted file or a crashed module (what a exe/dll is called when loaded in memory) in memory. I presume xyz is Jscript (so we know the dll is registerable - only COM dlls are)?

I have jscript loaded by msimn and explorer (shell process). Type in CMD
tasklist /m /fi "modules eq jscript.dll"

and terminate all processes that have jscript loaded. Try to register it again (use cmd as you can't use explorer without loading jscript). If the file is corrupted type sfc /scannow.
 
K

Kilbane

Hi David
Thanks for your ideas.
Here are some explantory comments:
1. The first error (return code 0x80004005) always results when trying
to register BOTH jscript.dll and vbscript.dll from the USER account
(whether as limited or admin account).
2. The second error message (entry point not found) results when trying
to unregister OR re-register wmploc.dll EVEN IN MY OWN ACCOUNT.
From your comments I get the impression that the first error may be
explained by the fact that I'm trying something which is not allowed
from a user account (although I cannot reconcile this with the fact
that I get the same message even when the user account is upgraded to
Admin status).
Perhaps the second error results from the file, wmploc.dll being
unregisterable.

If these deductions are correct, then I don't have a problem other than
the original one leading to WMP 10 being unlaunchable from the user
account (which is where it all started).
Note that jscript.dll (or vbscript.dll) is uncorrupted as it registers
without problems from my own account. Also, I regularly run sfc/scannow
in both accounts.
Neverthless, I was unable to carry out the CMD command you suggested.
MS-DOS did not recognise TASKLIST. Did you mean TASKKILL?
Thanks
Paul
 
D

David Candy

1. You should get that error as a user. But what does it matter. It not a per user thing. As long as someone can do it.
2. It not a registerable file.
 
D

Dave Patrick

wmploc.dll This DLL contains no DLLRegisterServer or DllUnregisterServer
functions hence the error message. In other words it doesn't need to be
registered.

DLL registrations are system wide so there's no need to re-register them
from another user's account.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Hi David
| Thanks for your ideas.
| Here are some explantory comments:
| 1. The first error (return code 0x80004005) always results when trying
| to register BOTH jscript.dll and vbscript.dll from the USER account
| (whether as limited or admin account).
| 2. The second error message (entry point not found) results when trying
| to unregister OR re-register wmploc.dll EVEN IN MY OWN ACCOUNT.
|
| >From your comments I get the impression that the first error may be
| explained by the fact that I'm trying something which is not allowed
| from a user account (although I cannot reconcile this with the fact
| that I get the same message even when the user account is upgraded to
| Admin status).
| Perhaps the second error results from the file, wmploc.dll being
| unregisterable.
|
| If these deductions are correct, then I don't have a problem other than
| the original one leading to WMP 10 being unlaunchable from the user
| account (which is where it all started).
| Note that jscript.dll (or vbscript.dll) is uncorrupted as it registers
| without problems from my own account. Also, I regularly run sfc/scannow
| in both accounts.
| Neverthless, I was unable to carry out the CMD command you suggested.
| MS-DOS did not recognise TASKLIST. Did you mean TASKKILL?
| Thanks
| Paul
|
 
P

PaulFXH

Guys,
Thanks for your comments and guidance.
So, apparently I don't have a problem with my dll registration after
all which is good to know.
Alas, it doesn't help me solve my original problem which is the WMP10
difficulty I already mentioned.
It looks like a clean-install of WinXP is on the cards.
Thanks again and best wishes
Paul
 
D

David Candy

There's something wrong with that user. They should be able to register it if admin. I just elevated a User account to admin and it worked. As 80004005 means unspecified error you can't assume they are the same error.

The LOC part of wmploc means localisation. No loc file I've seen is registrable.

Try uninstalling all shit. That is your Neros (which causes similar problems with my WMP - it one of their codecs in the newest version) and any other crappy program (DVD/Audio/Video/Burning) that unhelpfully thinks you want their buggy codecs replacing MS tested ones.

Perhaps post in the media player group.

You mentioned WMP in passing but that is all. You wanted to chat about Regsvr32.
 
P

PaulFXH

Hi David,
That's interesting that you have confirmed that the user account on my
machine DOES seem to have a problem. My hope is that this is linked to
the WMP 10 problem (in that both problems seem to be account-specific).
Therefore, it seems I can resurrect my desire to solve the dll
registration problem on the user account and thereby get rid of the WMP
10 problem at the same time which was my intention all along.
Actually, I have posted this problem four times already to a number of
groups (including WMP) but have received very few replies. This is
despite the fact that many other users have reported the same problem.
Some of the replies I got suggested re-registering the files
j(vb)script.dll and wmploc.dll The problems this led to caused me to
believe there was a connection between the registration difficulties
and the WMP 10 puzzle.
The problem is essentially that while WMP 10 works perfectly from my
account, in the users account it gives an Internal Application Error
message and goes no further.
Interestingly, after a repair-install of WinXP which I carried out
about 4 weeks ago, WMP 10 started to function normally on the user
account but then resumed giving the error message after a few days for
no obvious reason.
This suggests that it can indeed function in the presence of the "shit"
that you suggested uninstalling. Nevertheless, if I don't come across
any other options, I may move all of the Nero (and other) stuff onto my
external drive, disconnect this and try out WMP 10 from the user
account just to see if there may be some type of incompatibility thing
going.
I hope this clears up the complicated ramifications of my original
question.
Any thoughts or ideas you might have would be much appreciated.
Thanks
Paul
 
D

David Candy

You can try

ntsd wmplayer

Press G after loading to start the program and G after exiting to unload the program. It MAY give clues. Does it offer to send an error report? If so do you send it and READ the dialog when it is sent.
 
P

PaulFXH

David
Thanks for your suggestion.
I really am willing to try anything to emerge from this long running
problem.
However, I'm not getting anywhere with your suggestion to try "ntsd
wmplayer".
Neither Start>Run nor MS-DOS will accept this command.
Perhaps I have misinterpreted your instruction.
Thanks
Paul
 
P

PaulFXH

David
Just WinXP Home, I'm afraid.
However, I can't believe that my problem is unsolvable for that reason.
After all, I'm sure a clean-install will sort me out.
But, I plan to use the Dependency Walker utility suggested earlier in
this thread to figure what dll's are missing or corrupted.
Paul
 
P

PaulFXH

Hi David
OK but the fact that I cannot register the DLLs from the user account
(even with admin rights) suggests something is amiss. It is this that I
need to track down irrespective as to what it is.
Paul
 
D

David Candy

Why? Intellectual curiosity? I thought your problem was with Media Player. Yet you almost never talk about that and keep on about something that you can't do anyway.

Download Regmon and Filemon from www.sysinternals.com and monitor it as an admin account (no point as a user).

But I point out I told you to do X and you said No. That was remove shit. You ring MS technical support that will be the first thing they'll say to you and won't talk to you untill you do it. Type in Help Advanced Clean Boot troubleshooting.

Normally you create a new account and don't waste time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top