Here is the situation.
I have custom err.raise statement Err.Raise(vbObjectError+9000, src, desc) in an ES component. And when the client tries to trap the error, the error number that is returned is always 5, but I can get src and desc values. Is there any known problem with errors raised from ES component
Thanks.
ramesh nd.

Err.Raise in EnterpriseServices Component
CV 8.0
throw New COMException(Err.Exception, vbObjectError + 9500)
there is a marshaling problem if you use Err.Raise(vbObjectError + 9500) in ES component.
Note: You can use Throw inside On Error Goto block, and it works.
Nate McMurtray
thanks.
DirkR
I would throw an exception instead of using err.raise
Rob Clapham
.NET is type-based system, we should forgot about code errors at all.
I recomend author to read this article about Exception Management http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnbda/html/exceptdotnet.asp