an error occured while registering the generated type library: ErrorAccessing OLE Registry

A

Ashish

hi All,
I have been fighting this error when i build the dll which is marked for
com registration, it simply is refusing to regsiter the type library
!, although the same code works on other machine and registers the type
library


i have taken following steps in trying to diagnose the sitiuation ..

1. I can confirm that the dll is being produced !
2. I can confirm that there is not diskspace problem, or processes
having any locks on other related dlls, ( there are other dlls also
involved but they are not marked for com interop registration ...

3. It works on some machines

4. i can use the regasm tool to create the .reg file, and register it
using egedit, that works fine ...

5. I have checked the HK_CLASSES_ROOT and searched for the keys, and i
dont think there is any permission problems,

6. I have register the interop.frontpage.dll, and
interop.frontpageeditor.dll and some other file which works fine


Iam getting the same error using regasm or visualstudio, which i guess
is the consistent factor ...


any clues/hints would be appreciated ...

TIA
-ashish
 
N

Nick Malik

wild guess: Are you running version 'a' of this application component on the
same machine when you are compiling version 'b'?

The end of compilation attempts to register the component. If it is
running, this will probably fail. You should stop the component first, and
make sure it is not in use when compilation finishes.

This is a guess... I have not personally had this problem.

Hope this helps,

--- Nick
 
A

Ashish

Mattias said:
Ashish,




I suggest you use Regmon (from www.sysinternals.com) to determine
which key, if any, it fails to access.



Mattias
hi Mattias,
thanks a lot, i did that and i see that devenv tries to create some keys
in HKCR/Interfaces/{uid}, and gets access denied.
i tried to access the registry through regedit and it says i cannot view
it, since i dont have permissions, i am not able to set permissions on
that key too , even though iam administrator of the machine,

wondering if this is typical scenario or something not normal , and also
wondering if there is some tool or something to fix it

thanks again
-ashish
 
M

Mattias Sjögren

wondering if this is typical scenario or something not normal , and also
wondering if there is some tool or something to fix it

It certainly doesn't sound normal. But a similar issue is described
here

FIX: "Access to the Registry Key Denied" Error Message When You
Register .NET Assembly for COM Interop
http://support.microsoft.com/?kbid=327507

You should be able to adjust the permissions on the keys with Regedit.



Mattias
 

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