Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / December 2007

Tip: Looking for answers? Try searching our database.

Redemption and Reg-Free COM, how-to?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 01 Oct 2007 21:44 GMT
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.
Dmitry Streblechenko - 02 Oct 2007 22:32 GMT
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

>I am working on an add-in upgrade, and thought I'd try using RegFree COM
>for
[quoted text clipped - 9 lines]
> anyone?
> Thank you in advance.
Mike - 02 Oct 2007 23:29 GMT
Yes, the dll is customized.
The Redemption keys are in HKCR.
Windows XP Pro.
Visual Studio 2K5.

Thanks Dmitry!

> Did you customize the dll? Are the Redemption registry keys in HKCR or
> HKCU\Classes?
[quoted text clipped - 18 lines]
> > anyone?
> > Thank you in advance.
Jim - 27 Dec 2007 21:34 GMT
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.

> Yes, the dll is customized.
> The Redemption keys are in HKCR.
[quoted text clipped - 25 lines]
> > > anyone?
> > > Thank you in advance.
Dmitry Streblechenko - 28 Dec 2007 06:32 GMT
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

> 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.
[quoted text clipped - 33 lines]
>> > > anyone?
>> > > Thank you in advance.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.