Solved

COM+ - transient subscription

Posted on 2001-06-03
7
484 Views
Last Modified: 2013-12-03
Hi,

To make transient subscription I use the following code(VC++):

CComPtr     pCat;
CComPtr              pDispCol, pDispSub;
CComQIPtr   pCatCol;
CComQIPtr     pCatObj;
long                            nRetval;

hr = CoCreateInstance(__uuidof(COMAdminCatalog), NULL, CLSCTX_SERVER, __uuidof
(ICOMAdminCatalog), (void**)&pCat);

hr = pCat->GetCollection(L"TransientSubscriptions", &pDispCol);
pCatCol = pDispCol;
hr = pCatCol->Populate();
hr = pCatCol->Add(&pDispSub);
pCatObj = pDispSub;
//...
// setting subscription's properties (SubscriberInterface, EventClassID, etc...)
//...

hr = pCatCol->SaveChanges(&nRetval);

// .....

This code works fine within client application, BUT if I use this code within
COM+ component (say, this COM+ component would like to make transient
subscription itself) SaveChanges() on TransientSubscription collection call fails
with E_ACCESSDENIED error :(
I played with COM+ security settings,but nothing...
Also I tried to create COMAdminCatalog object using ContextObject
(CreateInstansce) - just the same...

May be somebody knows where is the problem.
Thanks in advance!
0
Comment
Question by:efratk
7 Comments
 
LVL 3

Expert Comment

by:elcapitan
ID: 6155830
Did you try to play with the identity tab in the com+ application properties?

--EC--
0
 

Author Comment

by:efratk
ID: 6155840
yes, and it didnt works
0
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 6158147
When you say COM+ component, are talking about an EXE or something running within IIS or what?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:efratk
ID: 6162926
a dll file

0
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 6164947
Okay, so your component is a DLL. How are you testing this DLL? What application are you using?
0
 

Expert Comment

by:Jgould
ID: 7602755
request for deletion is made here this will be honored in 24 hours with no further comments here by participants

http://www.experts-exchange.com/Community_Support/Q_20430231.html

Jgould-EE Moderator
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 7631758
PAQ'd and points refunded

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Run Program using VBScript 3 58
VS2015 compilation and missing DLLs 9 119
Which Microsoft MSDN Package Is The One I need? 3 42
Is IHttpActionResult a promise pattern? 2 59
This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now