Solved

COM+ - transient subscription

Posted on 2001-06-03
7
487 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do ASP.NET and MVC work together? 4 65
Need a simple RegEx to search for two words 27 49
Please explain purpose of GZIP 4 37
Why use this lambda? 12 41
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.…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

820 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