Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regsvr32 Access Denied

Status
Not open for further replies.

dmalpas

IS-IT--Management
Dec 11, 2003
33
GB
Hi

I am trying to reg a DLL but I keep getting an Access Denied error

I have admin right anyone seen this before

Dave
 
Perhaps the dll is in use?
Are you totally sure you are an admin on the machine?

"Sometimes I do not know but I try hard"- R.F. Haughty 1923
 
Hi

Yep I have admin rights

I have just found that it works on some machines and not others as well - but I cannot see any thing different between the builds though

Dave
 
Does the dll run under infamous IUSR_machinename
context that by default does not have proper registry access?
If so then
Use registry access 1.0. It allows components to create,
delete and update registry values while under the i_user account its from microsoft.
If not then let me know.


"Sometimes I do not know but I try hard"- R.F. Haughty 1923
 
The error occurs when:

. A DCOM object is involved, and DCOMCNFG has not been used first;

. or, more likely, the DLL is dependent on other DLLs that have not been registered prior to this DLL registration.
 
Sounds like this could be the answer

How do you use DCOMCNFG

Just had a quick look on M$ Site and could see any thing

Cheers

Dave
 
DCOMCNFG.EXE should be in your SYSTEM32 directory.

Start, Run, CMD
dcomcnfg.exe
 
Cheers

Will let you know how I get on later

Dave
 
My bet though would be on the second reason I gave earlier as the cause.
 
249873 - Explanation of Regsvr32 Usage and Error Messages



Regsvr32.exe and Dependencies.

RegSvr32.exe depends on the Kernel32.dll, User32.dll, and Ole32.dll files (and the Msvcrt.dll and Advapi32.dll files in Windows NT). Regsvr32.exe loads the file you are trying to register or un-register, along with all of its dependencies. The process may be unsuccessful if a required file is missing or damaged.

You can use Depends.exe to determine dependencies for the file you are trying to register or un-register. Depends.exe is included with the Microsoft Windows 98 Resource Kit and the Microsoft Windows NT 4.0 Resource Kit support tools.

198707 - SMS: Dependency Walker for Win32 (Depends.exe)
 
Is it on the Windows CD?

To install Windows Support Tools
Insert the Windows CD into your CD-ROM drive.
Click No if you are prompted to reinstall Windows.
When the Welcome screen appears, click Browse this CD.
Go to the \Support\Tools folder.
For complete setup information, refer to the Readme.doc file in this folder.
Double-click Setup.exe.
Follow the instructions that appear on your screen.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top