We help IT Professionals succeed at work.

Regsvr32 Failure

bachar
bachar asked
on
Hi,

Regsvr32 failed with following message:
RegSvr32: DllRegisterServer in \....\..MyFile.dll failed.
Return code was: 0x8007007e

It fails to all com dll projects I'm creating.
It doesn't failed for MyProjectps.dll (Proxy \ Stub) creating from com server project.

Doe's someone know what is the problem and how to fix it?

Thank you very much,
Michael.
Comment
Watch Question

The error code means: "The specified module could not be found."  In other words, RegSvr32 couldn't find the file MyFile.dll.  Are you sure the path is correct?
CERTIFIED EXPERT
Top Expert 2008

Commented:
I encountered that in some cases changing the place of the paths in PATH environment variable improves the things.

1. Find where your .dll is
2. check PATH environment variable and place the description to the path on the first place.

Commented:
Which language do you use? When you use Win32 and IDL you will need to create the DllRegisterServer function yourself. "Languages" like ATL will add that code by itself. What I am saying is that you might've missed something.

Languages like Visual Basic add the necessary code by itself, and when compiled it will also register itself on your machine. Tried that yet?

regards,
CJ

Commented:
Are your dlls calling other dlls? in this case, even if the dll you try to register is found, it will fail because it tries to solve all dependencies. Try to use depends.exe to check this.
May you copy the regsvr32.exe to %system% dir: c:\windows\system or c:\winnt\system32 for winnt. Go to the path where your Dll is and type : regsvr32 <filename.dll>
bachar,

These questions are still open and our records show you logged in recently. Please resolve them appropriately as soon as possible. Continued disregard of your open questions will result in the force/acceptance of a comment as an answer; other actions affecting your account may also be taken. I will revisit these questions in approximately seven (7) days. Please note that the recommended minimum for an "Easy" question is 50 points.
http://experts-exchange.com/jsp/qShow.jsp?ta=progsoftgen&qid=20186509
http://experts-exchange.com/jsp/qShow.jsp?ta=progsoftgen&qid=20100277
http://experts-exchange.com/jsp/qShow.jsp?ta=progsoftgen&qid=20005648
http://experts-exchange.com/jsp/qShow.jsp?ta=progsoftgen&qid=11452298
http://experts-exchange.com/jsp/qShow.jsp?ta=progsoftgen&qid=11404058
http://experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20141685
http://experts-exchange.com/jsp/qShow.jsp?ta=mfc&qid=20145151
http://experts-exchange.com/jsp/qShow.jsp?ta=mfc&qid=20116236
http://experts-exchange.com/jsp/qShow.jsp?ta=mfc&qid=20094685
http://experts-exchange.com/jsp/qShow.jsp?ta=networkgen&qid=20032846

EXPERTS: Please leave your thoughts on this question here.

Thanks,

Netminder
Community Support Moderator
Experts Exchange
Admin notified of user neglect. Force/accepted by

Netminder
Community Support Moderator
Experts Exchange