Redemption and Reg-Free COM, how-to?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am working on an add-in upgrade, and thought I'd try using RegFree COM for
an internal c++ component, and for the Redemption libraries. (I got the idea
from the Redemption website:
www.dimastr.com/redemption/security.htm#regfreecom) However, as soon as I
set 'Isolated=True' in VS2K5 Interop.Redemption properties, I get a build
error: "Problem isolating COM reference 'Redemption': No registered classes
were detected for this component." The dll is properly registered with
regsvr32 and resides in the ..\WINDOWS\System32 folder. Any thoughts anyone?
Thank you in advance.
 
Did you customize the dll? Are the Redemption registry keys in HKCR or
HKCU\Classes?
What is teh Windows version?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Yes, the dll is customized.
The Redemption keys are in HKCR.
Windows XP Pro.
Visual Studio 2K5.

Thanks Dmitry!
 
Did you ever figure this out mike? I'm getting th exact same problem. As
soon as I set Isolated = True, I get the isolating COM reference error.
 
The problem is that when Redemption.dll is customized, only the registry
names of the Redemption classes are changed, but not the underlying type
library (embedded as a resource in the dll).
When VS tries to locate the registry keys, it looks for the original class
names stored in the type library, not the modified class names.
If you are using registry-free COM, there is absolutely no reason to also
customize the dll since it will never be registered in the registry, and no
other app will ever see or use it.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top