Solved

COM+ - transient subscription

Posted on 2001-06-03
7
483 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 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

18 Experts available now in Live!

Get 1:1 Help Now