COM component works locally but not remotely.

I have a piece of code in a class in a DLL...

Public Function Test() As String

On Error GoTo errHandler

Test = "This is Library DBGateway Class DynamicSQL Function Test"

Exit Function

errHandler:

Set mErr = Err
Err.Raise vbObjectError + mErr.Number, _
mErr.Source & ":DynamicSQL:Test", _
mErr.Description
Resume Next

End Function

When running locally as part of a project group, the function returns the expected string. When compiled and referenced from another project, the function returns nothing, produces no error message, and does not time out. It seems to be running normally, but there is no string.

If anyone knows how to get it to return the string, or at least how to get it to tell me why it will not return the string, it would be much appreciated. It's driving me to drink.

Thanks.
[978 byte] By [jmsummitt] at [2007-11-20 2:59:59]
# 1 Re: COM component works locally but not remotely.
cud u plz, post ur code here..i tested it, it's working fine...
VB_Learner at 2007-11-9 19:50:08 >
# 2 Re: COM component works locally but not remotely.
A guess:
somewhere you have a "Test" that is "shadowing" your Test function...
(probably not your matter, but...)
Try again with another name and as per testing, disable error handling.
By the way: remotely. If you mean that, it should be a Com+
component (even if you could manage to make a Com works)...
Cimperiali at 2007-11-9 19:51:13 >