On this page

Enterprise Services and Exceptions III
PDC is on!
Melbourne, Australia



The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 83
This Year: 0
This Month: 0
This Week: 0
Comments: 5

Sign In

# Sunday, September 14, 2003
Enterprise Services and Exceptions III
Sunday, September 14, 2003 6:25:01 AM UTC ( Enterprise Services )

I keep getting questions about the use of custom exceptions with serviced components, and why they sometimes lose their type “on the wire”. As I never really finished this topic in my previous blog entries, I thought it was about time I provided a small conclusion.

From my somewhat limited understanding of the subject there is an optimization taking place in the underlying infrastructure. If your method signature only contains isomorphic types like integers, strings and doubles it is more efficient to use COM Interop to communicate with serviced components because then you don’t have to utilize the .Net serialization engine. However if your method signature contains more complex types, non-isomorphic types like datasets, the .Net serialization engine will be used together with .Net remoting over a custom DCOM channel. In the latter case your custom exceptions will work as expected. Unfortunately, in the first case you will be limited by COM Interop that uses the COM infrastructure, HRESULT values and IErrorInfo, to support exception handling. The result is that exceptions with a registered HRESULT value like most system exceptions will be recreated and returned as expected while custom exceptions most likely will reappear as a COMException type if you provide your own HRESULT or as an ApplicationException type if your exception simply derives from that base class.

As far as I know there is no known fix for this problem short of forcing a more complex method signature, which isn’t exactly something I would recommend.

Comments [0] | | # 
# Thursday, September 4, 2003
PDC is on!
Thursday, September 4, 2003 3:35:56 AM UTC ( General )

After a few months of insecurity I finally got confirmation that I’ll be attending the Microsoft Professional Developers Conference 2003.

I’m really looking forward to diving into the new distributed application platform, the next version of Windows, SQL Server and Whidbey, and of course seeing some of the industries finest techies in action.

And with a little bit of luck there will be some very interesting discussions and bloggers events.

In short; I just can’t wait!

Comments [0] | | # 
# Monday, September 1, 2003
Melbourne, Australia
Monday, September 1, 2003 2:11:26 PM UTC ( General )

In a rather interesting turn of events I find myself enjoying a much deserved 6 weeks long vacation in Melbourne, Australia.

I’m visiting a long time friend of mine, and combining a piece of local culture with a rather fair amount of computer related research and some of the world’s finest red wine.

I guess this makes me wonder if any .Net bloggers out there are keen on grabbing a computer related beer in the heart of Melbourne.

Comments [0] | | #