Howdy,
In VB:
In a MTS enabled class:
Public property Get OriginalUsername() As String
Dim objCtx As ObjectContext
Set objCtx = GetObjectContext()
OriginalUsername = objCtx.Security.GetOriginalCallerName
Set objCtx = Nothing
End Property
Greetz,
Kees
Howdy,
I think there are some problems with rights here:
An ASP page creates the object with the rights of the IUSR_<Servername> user. The VB project creates the object with the userrights of the currently logged in user.
If you're reading from the registry, the IUSR_<Servername> user needs to...
Howdy,
A COM object needs to be registred (has to have an entry in the Registry) on the computer it needs to run on. The code in an ASP page is run on the server, so the COM object needs to be registred on the server. Only when you're behind a console of this server you can register the object...
Howdy,<br><br>Unfortuniately I have to disagree with Nikolay: the object you created still exists indeed (Object Pooling is NOT, I repeat NOT implemented in MTS v2.0!!!!!! (you can find this in the helpfile of MTS v2.0 SP1)<br><br>I think the problem you have is that not all objects created in...
Howdy,<br><br>In the MTS 2.0 Helpfile under 'Object Pooling and Recycling':<br>"...<br><br>Important Object pooling and recycling is not available in this release. MTS calls CanBePooled as described here, but no pooling takes place. This forward-compatibility encourages...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.