Re: COM+ Method level security problem



> Is this method required in all cases or is it a workaround
> - if not then why does the Interface generated by VS (with
> Register for Com interap optin checked) not work?

Because you use method level security you need to explicitly declare an
interface.

> *at first it didn't work but second time it did - is it
> possible COM+ is caching dll's somewhere - I had COM+ admin
> consol open the first time?

this is called object pooling and can be disabled with the attribute
objectpooling (see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemEnterpriseServicesObjectPoolingAttributeClassTopic.asp)
but use it wisely :)

Some articles you can read about COM+:
http://msdn.microsoft.com/msdnmag/issues/01/10/complus/
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet11262002.asp

Gabriel Lozano-Morán


.



Relevant Pages

  • Re: COM+ Method level security problem
    ... Is this method required in all cases or is it a workaround ... *at first it didn't work but second time it did - is it ... possible COM+ is caching dll's somewhere - I had COM+ admin ... consol open the first time? ...
    (microsoft.public.dotnet.framework.component_services)
  • Re: USBAttachDevice : LPCUSB_INTERFACE UsbInterface = NULL
    ... called with NULL for interface parameter. ... If you take the printer class as example for your driver, ... I'm not sure what you mean by "first time". ...
    (microsoft.public.windowsce.platbuilder)
  • Re: CFileDialog + XP SP2
    ... Sorry to post twice - this first time I posted through the MSDN web ... it had not appeared either through their interface nor ... > function exits, the MFC ... > I'm happy to include some source code, but like I said, my actual example ...
    (microsoft.public.vc.mfc)
  • Re: USBAttachDevice : LPCUSB_INTERFACE UsbInterface = NULL
    ... I'm not sure what you mean by "first time". ... The code that failed was a 1-on-1 copy of the USBPRN driver. ... The interface class for that interface is reported as 10, ... so I guess the printer sample would just crash? ...
    (microsoft.public.windowsce.platbuilder)
  • Property that sets and gets an object
    ... I'm developing al litle control in VC++2005 it's my first time with ATL ... interface IContent: IDispatch{ ... interface IContainer: IDispatch{ ...
    (microsoft.public.vc.atl)