Solved

COM+ - transient subscription

Posted on 2001-06-03
7
486 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

778 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