Redemption and Reg-Free COM, how-to?

M

Mike

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.
 
D

Dmitry Streblechenko

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
 
M

Mike

Yes, the dll is customized.
The Redemption keys are in HKCR.
Windows XP Pro.
Visual Studio 2K5.

Thanks Dmitry!
 
J

Jim

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.
 
D

Dmitry Streblechenko

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
 

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