Thanks for your reply.
I made the changes you suggested and got it working
eventually*.
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?
Brendon.
*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?
> 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/frlr
fSystemEnterpriseServicesObjectPoolingAttributeClassTopic.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/v
bnet11262002.asp
Gabriel Lozano-Morán
anonymous@discussions.microsoft.com - 28 Apr 2005 16:46 GMT
Thanks - I've got another question regarding
programatically detecting roles, but I'll post as a new thread.
>-----Original Message-----
>> Is this method required in all cases or is it a workaround
[quoted text clipped - 11 lines]
>objectpooling (see
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fSystemEnterpriseServicesObjectPoolingAttributeClassTopic.asp)
>but use it wisely :)
>
[quoted text clipped - 5 lines]
>
>.