Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6: the IsSecurityEnabled method doesn't seem to be working

Status
Not open for further replies.

DoctorWho

MIS
Apr 28, 2003
13
US
I've got a VB6 (SP5) COM+ component I've written, which uses the ObjectContext's method IsSecurityEnabled method to determine whether or not security is enabled for that component in component services on a Windows 2000 server. (Eventually I want to use the IsCallerInRole() method, but I've got to use the IsSecurityEnabled first, as I understand it.) Anyway, I KNOW that the security is enabled on the server; I can SEE it is enabled. I've
written some code so that it will write to the server's event log letting me know where it is in the code, and I have found that it does NOT think that security is enabled?!



What's the problem here?
 
It's been a while since I played with this (in fact, in the MTS days predating COM+), but are you saying that you have enabled security for this specific object? Also, is security enabled for all the objects that it uses?
 
Bob,

I found out what I had done wrong. I have security enabled at the component level, but not at the application level.

 
Yeah, something like that was going fuzzily through my mind, although I was thinking perhaps the opposite. I remembered you have to enable two levels of security.

Bob
 
Yeah, I wasn't even aware that I had to handle the security at two levels. Well, now that I know, I'll try not to forget.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top