CComModule UnregisterServer error?

I have a CComModule that is calling RegisterServer (TRUE) on DllRegisterServer and UnregisterServer (TRUE) on DllUnregisterServer. The UnregisterServer is getting a 0x8002801C (Error accessing the OLE registry.) error and leaving around registery keys. I am using a Windows Server 2k8 R2 machine with UAC enabled. The components are x86 and I am using the 32 bit regsrv32.

Does anyone know why I would be getting this error?


You must run Regsvr32.exe from a command prompt that's elevated to administrator (i.e. UAC disabled). Make a shortcut on your desktop to "cmd.exe", right-click it and choose "Run as Administrator".

If you're using ATL and VS2008 then you can register your COM object per-user which writes the necessary registry keys to HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE. You register your object by passing a special user switch to regsvr32, e.g.:

regsvr32.exe /i:user /n yourobject.dll 

COM servers can be registered with the /RegServerPerUser switch.

I asked a similar question.

Need Your Help

Can't get the builder pattern in Twitter Kit to work....Cannot resolve symbol

android twitter builder twitter-fabric

I cant get this builder pattern using twitter kit to work for nothing...

Design an Access Form with Dynamic SQL as Recordsource

vba ms-access access-vba ms-access-2010 ms-access-2003

I am pretty new to Access VBA programming. Here is one problem I have when creating a form in Access. I need to link the form's recordsource to a query object which I have already defined. Let's sa...