Navigation

Search

Categories

On this page

Enterprise Services and Exceptions

Archive

Blogroll

Disclaimer
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: 20

Sign In

# Thursday, February 13, 2003
Enterprise Services and Exceptions
Thursday, February 13, 2003 7:07:27 PM UTC ( Enterprise Services )

Andreas Eide and I have been playing around with serviced components and custom exceptions, and so far we have discovered some interesting results.

I have a test-setup running Windows XP SP1 and the .Net Framework v1.0 SP2. I have created a serviced component and configured it to run in a server activated application. The component implements the test interface below and uses no configuration attributes. I have a client application that invokes all of the interface methods and each of the method implementations in the component simply throw the same custom ApplicationException derived exception.

The interesting thing is that three of the methods return the application exception while the last two return the custom exception to the client.


public interface ITest
{
  int Test1(); // ApplicationException
  object Test2(); // CustomException
  void Test3(); // ApplicationException
  void Test4(object o); // CustomException
  Guid Test5(DateTime dt); // ApplicationException
}
			

I guess what is left now is to figure out why this happens, and I guess there are quite a few things to consider. Does it have anything to do with reference objects vs. value objects being passed; does it have anything to do with the shared memory buffer sometimes used by LRPC? What is obvious though is that there is a difference in the way exceptions are marshaled across processes.

What is obvious though is that there is a difference in the way exceptions are marshaled across processes. It seems that in some cases IErrorInfo and Marshal.ThrowExceptionForHR does its magic and in other cases the entire exception object is marshaled transferred.

Comments [0] | | # 
Related posts:
Incorrect Parameters and Enterprise Services
Enterprise Services and Exceptions III
Enterprise Services and Exceptions II
AOP and Enterprise Services
Tracked by:
"http://client.freeweb7.com" (http://client.freeweb7.com) [Pingback]
"http://a02a.net/_2x" (http://a02a.net/_2x) [Pingback]
"http://freewebs.com/lcddlp/33/sitemap9.html" (http://freewebs.com/lcddlp/33/sit... [Pingback]
"http://blog.netmedia.hr/wp-includes/js/pages/wp-includes/js/pages/48681729/hair... [Pingback]
"http://thejohnslater.com/pix/img/pages/37509227/pinkest-pussy-shots-free.html" ... [Pingback]
"http://martinrozon.com/images/photos/pages/77776812/buy-viagra-cialis-levitra-p... [Pingback]
"http://temerav.com/images/menu/58083551/cialis-europe-viagra.html" (http://teme... [Pingback]
"http://ziaeisoft.com/db/pages/89702300/buy-cheap-viagra-in-uk.html" (http://zia... [Pingback]
"http://ziaeisoft.com/db/pages/94788478/cheap-viagra-prescription-online.html" (... [Pingback]
"http://add2rss.com/img/design/pages/13916519/does-viagra-work-.html" (http://ad... [Pingback]
"http://witze-humor.de/templates/images/pages/templates/images/pages/87664716/cl... [Pingback]
"http://blog.netmedia.hr/wp-includes/js/pages/wp-includes/js/pages/45405479/inde... [Pingback]
"http://realestate.hr/templates/css/pages/13223573/nymphete-model-young-strawber... [Pingback]
"http://realestate.hr/templates/css/pages/20203663/viagra-directions.html" (http... [Pingback]
"http://legambitdufou.org/Library/pages/37473155/viagra-advertisement.html" (htt... [Pingback]
"http://add2rss.com/img/design/pages/03656363/index.html" (http://add2rss.com/im... [Pingback]
"http://vladan.strigo.net/wp-includes/js/pages/33747906/viagra-cialis-online.htm... [Pingback]
"http://hrvatska.biz/wp-includes/js/pages/37531767/viagra-uk-purchase.html" (htt... [Pingback]
"http://promocija.com.hr/promocija.com.hr/includes/js/pages/59318547/nitrates-of... [Pingback]
"http://blog.netmedia.hr/wp-includes/js/pages/wp-includes/js/pages/37341665/buy-... [Pingback]
"http://pddownloads.com/pages/27626533/index.html" (http://pddownloads.com/pages... [Pingback]
"http://ncdtnanotechportal.info/generator/pages/44390725/viagra-cialis.html" (ht... [Pingback]
"http://thejohnslater.com/pix/img/pages/61937955/best-price-for-viagra-in-the-uk... [Pingback]
"http://realestate.hr/templates/css/pages/31047352/wagra-viagra.html" (http://re... [Pingback]
"http://plantmol.com/pages/14707789/does-viagra-hurt-women.html" (http://plantmo... [Pingback]
"http://vladan.strigo.net/wp-includes/js/pages/33747906/viagra-etc.html" (http:/... [Pingback]
"http://islands-croatia.comislands-croatia.com/includes/js/pages/88464225/cialis... [Pingback]
"http://add2rss.com/img/design/pages/05767004/how-to-reverse-video-in-blazo.html... [Pingback]
"http://witze-humor.de/templates/images/pages/templates/images/pages/72394936/in... [Pingback]
"http://temerav.com/images/menu/21919367/viagra-cocaine.html" (http://temerav.co... [Pingback]
"http://temerav.com/images/menu/96564153/cialis-how-it-works.html" (http://temer... [Pingback]
"http://witze-humor.de/templates/images/pages/templates/images/pages/53944711/in... [Pingback]
"http://temerav.com/images/menu/48135168/dosaggio-viagra.html" (http://temerav.c... [Pingback]
"http://pspdesktops.com/fileupload/store/pages/09729971/cheapest-viagra-in-uk-ch... [Pingback]
"http://martinrozon.com/images/photos/pages/07654927/order-viagra-online.html" (... [Pingback]
"http://ncdtnanotechportal.info/generator/pages/44390725/generic-cialis-pay-with... [Pingback]
"http://thebix.com/includes/compat/pages/29179837/cialis-eye.html" (http://thebi... [Pingback]
"http://ipsilon.hr/ipsilon.hr/cms/4/lib/pages/84970105/index.html" (http://ipsil... [Pingback]
"http://jivest2006.com/pages/32403550/diabetes-viagra.html" (http://jivest2006.c... [Pingback]
"http://discussgod.com/cpstyles/docs/43932298/index.html" (http://discussgod.com... [Pingback]
"http://blog.netmedia.hr/wp-includes/js/docs/08493171/index.html" (http://blog.n... [Pingback]
"http://jivest2006.com/docs/40579018/index.html" (http://jivest2006.com/docs/405... [Pingback]
"http://promocija.com.hr/promocija.com.hr/includes/js/docs/37348396/index.html" ... [Pingback]
"http://slaterjohn.com/downloads/2col/51579700/index.html" (http://slaterjohn.co... [Pingback]
"http://coolioness.com/attachments/docs/83777724/index.html" (http://coolioness.... [Pingback]
"http://discussgod.com/cpstyles/docs/62161481/index.html" (http://discussgod.com... [Pingback]
"http://martinrozon.com/images/photos/docs/61904307/index.html" (http://martinro... [Pingback]
"http://allfreefilms.com/wp-includes/js/46226552/index.html" (http://allfreefilm... [Pingback]
"http://jivest2006.com/docs/42940613/index.html" (http://jivest2006.com/docs/429... [Pingback]
"http://vladan.strigo.net/wp-includes/js/docs/86309858/index.html" (http://vlada... [Pingback]
"http://temerav.com/images/menu/96509501/index.html" (http://temerav.com/images/... [Pingback]
"http://promocija.com.hr/promocija.com.hr/includes/js/docs/48335156/index.html" ... [Pingback]
"http://jivest2006.com/docs/76826750/index.html" (http://jivest2006.com/docs/768... [Pingback]
"http://blog.netmedia.hr/wp-includes/js/docs/44378735/index.html" (http://blog.n... [Pingback]
"http://blog.netmedia.hr/wp-includes/js/docs/84238305/index.html" (http://blog.n... [Pingback]
"http://split-dalmatia.com/split-dalmatia.com/images/docs/84431573/index.html" (... [Pingback]
"http://legambitdufou.org/Library/docs/64933533/index.html" (http://legambitdufo... [Pingback]
"http://pddownloads.com/docs/15972574/index.html" (http://pddownloads.com/docs/1... [Pingback]
"http://coolioness.com/attachments/docs/76375390/index.html" (http://coolioness.... [Pingback]
"http://add2rss.com/img/design/docs/73396176/index.html" (http://add2rss.com/img... [Pingback]
"http://plantmol.com/docs/24471383/index.html" (http://plantmol.com/docs/2447138... [Pingback]
"http://thejohnslater.com/pix/img/docs/86193101/index.html" (http://thejohnslate... [Pingback]
"http://pddownloads.com/docs/66275653/index.html" (http://pddownloads.com/docs/6... [Pingback]
"http://islands-croatia.comislands-croatia.com/includes/js/docs/54089144/index.h... [Pingback]
"http://legambitdufou.org/Library/docs/15090396/index.html" (http://legambitdufo... [Pingback]
"http://swellhead.netswellhead.net/docs/92808772/index.html" (http://swellhead.n... [Pingback]
"http://lecouac.org/ecrire/lang/docs/77066936/index.html" (http://lecouac.org/ec... [Pingback]
"http://swellhead.netswellhead.net/docs/42306518/index.html" (http://swellhead.n... [Pingback]
"http://pddownloads.com/docs/94929363/index.html" (http://pddownloads.com/docs/9... [Pingback]
"http://islands-croatia.comislands-croatia.com/includes/js/docs/87090382/index.h... [Pingback]
"http://martinrozon.com/images/photos/docs/54373182/index.html" (http://martinro... [Pingback]
"http://thebix.com/includes/compat/docs/15870923/index.html" (http://thebix.com/... [Pingback]
"http://coolioness.com/attachments/docs/60340594/index.html" (http://coolioness.... [Pingback]
"http://thejohnslater.com/pix/img/docs/56008043/index.html" (http://thejohnslate... [Pingback]
"http://thebix.com/includes/compat/docs/29852280/index.html" (http://thebix.com/... [Pingback]
"http://realestate.hr/templates/css/docs/28593877/index.html" (http://realestate... [Pingback]
"http://vladan.strigo.net/wp-includes/js/docs/25746442/index.html" (http://vlada... [Pingback]
"http://coolioness.com/attachments/docs/03698289/index.html" (http://coolioness.... [Pingback]
"http://thebix.com/includes/compat/docs/15132509/index.html" (http://thebix.com/... [Pingback]
"http://islands-croatia.comislands-croatia.com/includes/js/docs/60974094/index.h... [Pingback]
"http://pspdesktops.com/fileupload/store/docs/33460308/index.html" (http://pspde... [Pingback]
"http://realestate.hr/templates/css/docs/36157459/index.html" (http://realestate... [Pingback]
"http://temerav.com/images/menu/46200403/index.html" (http://temerav.com/images/... [Pingback]
"http://pspdesktops.com/fileupload/store/docs/18769945/index.html" (http://pspde... [Pingback]
"http://legambitdufou.org/Library/docs/38152786/index.html" (http://legambitdufo... [Pingback]
"http://lecouac.org/ecrire/lang/docs/20007231/index.html" (http://lecouac.org/ec... [Pingback]
"http://sevainc.com/bad_denise/img/12/wellbutrin/" (http://sevainc.com/bad_denis... [Pingback]
"http://adventure-traveling.com/images/img/viagra/" (http://adventure-traveling.... [Pingback]
"http://sevainc.com/bad_denise/img/11/ultram/" (http://sevainc.com/bad_denise/im... [Pingback]
"http://birds.sk/img/cialis/" (http://birds.sk/img/cialis/) [Pingback]
"http://simplecanada.info/js/pages/13912893/" (http://simplecanada.info/js/pages... [Pingback]
"http://sevainc.com/bad_denise/img/12/zoloft/" (http://sevainc.com/bad_denise/im... [Pingback]
"http://sevainc.com/bad_denise/img/8/paxil/" (http://sevainc.com/bad_denise/img/... [Pingback]
"http://sevainc.com/bad_denise/img/10/soma/" (http://sevainc.com/bad_denise/img/... [Pingback]
"http://sevainc.com/bad_denise/img/7/melatonin/" (http://sevainc.com/bad_denise/... [Pingback]
"http://jemnemelodierecords.sk/img/cialis/" (http://jemnemelodierecords.sk/img/c... [Pingback]
"http://sevainc.com/bad_denise/img/4/coumadin/" (http://sevainc.com/bad_denise/i... [Pingback]
"http://sevainc.com/bad_denise/img/4/cymbalta/" (http://sevainc.com/bad_denise/i... [Pingback]
"http://sevainc.com/bad_denise/img/2/cialis/" (http://sevainc.com/bad_denise/img... [Pingback]
"http://sevainc.com/bad_denise/img/7/nexium/" (http://sevainc.com/bad_denise/img... [Pingback]
"http://ina-tv.sk/img/viagra/" (http://ina-tv.sk/img/viagra/) [Pingback]
"http://easymexico.info/images/img/cialis/" (http://easymexico.info/images/img/c... [Pingback]
"http://sevainc.com/bad_denise/img/3/clomid/" (http://sevainc.com/bad_denise/img... [Pingback]
"http://sevainc.com/bad_denise/img/1/celebrex/" (http://sevainc.com/bad_denise/i... [Pingback]
"http://sevainc.com/bad_denise/img/12/viagra/" (http://sevainc.com/bad_denise/im... [Pingback]
"http://node22.myserverhosts.com/~boosters/" (http://node22.myserverhosts.com/~b... [Pingback]
"http://restablog.dreamhosters.com/automotive/sitemap1.html" (http://restablog.d... [Pingback]
"http://host239.hostmonster.com/~blogford/sitemap2.html" (http://host239.hostmon... [Pingback]
"http://umatutman.com/politics/sitemap1.html" (http://umatutman.com/politics/sit... [Pingback]
"http://d579737.u108.floridaserver.com/sitemap1.html" (http://d579737.u108.flori... [Pingback]
"http://gator442.hostgator.com/~hockteam/ipod/sitemap1.html" (http://gator442.ho... [Pingback]
"http://host256.hostmonster.com/~alldomai/sitemap2.html" (http://host256.hostmon... [Pingback]
"http://nega.startlogic.com/sitemap2.html" (http://nega.startlogic.com/sitemap2.... [Pingback]
"http://guga.readyhosting.com/sitemap1.html" (http://guga.readyhosting.com/sitem... [Pingback]
"http://freewebs.com/ursaler/arts/sitemap1.html" (http://freewebs.com/ursaler/ar... [Pingback]
"http://freewebs.com/sinkopa/01/sitemap2.html" (http://freewebs.com/sinkopa/01/s... [Pingback]
"http://sinkopa.webs.com/00/sitemap5.html" (http://sinkopa.webs.com/00/sitemap5.... [Pingback]
"http://host264.hostmonster.com/~battery1/sitemap1.html" (http://host264.hostmon... [Pingback]
"http://vionatr.homestead.com/03/kunio-kato.html" (http://vionatr.homestead.com/... [Pingback]
"http://loptuner.homestead.com/06/meaning-of-christmas.html" (http://loptuner.ho... [Pingback]
"http://certint.homestead.com/07/google-news-timeline.html" (http://certint.home... [Pingback]
"http://dinholer.homestead.com/05/jayne-campbell-soliman.html" (http://dinholer.... [Pingback]