Navigation

Search

Categories

On this page

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, December 4, 2003
Incorrect Parameters and Enterprise Services
Thursday, December 4, 2003 10:10:57 PM UTC ( Enterprise Services )

We were hunting down a weird bug at work today, and came across this interesting problem with Enterprise Services. If you send a non-empty decimal array into a ServicedComponent you get a “The parameter is incorrect.” argument exception.

Just create a method that takes a single argument, the decimal array, in your server activated ServicedComponent and give it a trial run. You’ll need to use an interface to get the COM magic going though.

					
[assembly: ApplicationActivation(ActivationOption.Server)]

public interface ITest
{
	void Test(decimal[] test);
}

public class TestComponent : ServicedComponent, ITest
{
	public void Test(decimal[] test) {}
}

class Client
{
	static void Main()
	{
		TestComponent cl = new TestComponent();
		cl.Test(new decimal[] {1m, 2m});
	}
}
					
				

Have fun ;)

Comments [0] | | # 
Related posts:
Enterprise Services and Exceptions III
Enterprise Services and Exceptions II
Enterprise Services and Exceptions
AOP and Enterprise Services
Tracked by:
"http://center.websited.net" (http://center.websited.net) [Pingback]
"http://freewebs.com/lcddlp/37/sitemap6.html" (http://freewebs.com/lcddlp/37/sit... [Pingback]
"http://ka414775.qbigvm1.info/sitemap17.html" (http://ka414775.qbigvm1.info/site... [Pingback]
"http://he193305.soll6dp.info/sitemap1.html" (http://he193305.soll6dp.info/sitem... [Pingback]
"http://temerav.com/images/menu/58083551/viagra-after-a-stroke.html" (http://tem... [Pingback]
"http://swellhead.net/41420934/see-family-guy-have-sex.html" (http://swellhead.n... [Pingback]
"http://islands-croatia.comislands-croatia.com/includes/js/pages/13629634/le-via... [Pingback]
"http://allfreefilms.com/wp-includes/js/87319580/viagra-free-shipping.html" (htt... [Pingback]
"http://coolioness.com/attachments/pages/attachments/pages/30904024/cialis-and-p... [Pingback]
"http://vladan.strigo.net/wp-includes/js/pages/18419035/bulk-cialis-sold-world-w... [Pingback]
"http://split-dalmatia.com/split-dalmatia.com/images/pages/52987785/female-viagr... [Pingback]
"http://legambitdufou.org/Library/pages/09590878/senior-citizens-viagra-cialis-l... [Pingback]
"http://split-dalmatia.com/split-dalmatia.com/images/pages/91234049/cutting-cial... [Pingback]
"http://jivest2006.com/pages/93572908/index.html" (http://jivest2006.com/pages/9... [Pingback]
"http://entartistes.ca/images/images/pages/69382031/index.html" (http://entartis... [Pingback]
"http://islands-croatia.comislands-croatia.com/includes/js/pages/37939565/mark-m... [Pingback]
"http://temerav.com/images/menu/56470975/viagra-versus-levitra.html" (http://tem... [Pingback]
"http://islands-croatia.comislands-croatia.com/includes/js/pages/29909730/index.... [Pingback]
"http://lecouac.org/ecrire/lang/pages/54607083/viagra-paypal.html" (http://lecou... [Pingback]
"http://discussgod.com/cpstyles/pages/10800354/card-free-viagra.html" (http://di... [Pingback]
"http://blog.netmedia.hr/wp-includes/js/pages/wp-includes/js/pages/59518157/viag... [Pingback]
"http://martinrozon.com/images/photos/pages/38317589/get-viagra-drug-online.html... [Pingback]
"http://slaterjohn.com/downloads/2col/09137404/buy-viagra-cheap-viagra-online-co... [Pingback]
"http://entartistes.ca/images/images/pages/41613134/is-viagra-safe-after-coronar... [Pingback]
"http://ipsilon.hr/ipsilon.hr/cms/4/lib/pages/40329955/abi-titmuss-porn-vid.html... [Pingback]
"http://vladan.strigo.net/wp-includes/js/pages/33747906/viagra-patent-china.html... [Pingback]
"http://temerav.com/images/menu/21919367/viagra-hard-again.html" (http://temerav... [Pingback]
"http://ziaeisoft.com/db/pages/80865688/cialis-nz.html" (http://ziaeisoft.com/db... [Pingback]
"http://realestate.hr/templates/css/pages/61224707/market-demand-for-viagra.html... [Pingback]
"http://swellhead.net/94889839/beginner-guide-video-mixer.html" (http://swellhea... [Pingback]
"http://vladan.strigo.net/wp-includes/js/pages/86561572/y-india-movies.html" (ht... [Pingback]
"http://vladan.strigo.net/wp-includes/js/pages/88916172/cheapest-viagra-and-cial... [Pingback]
"http://pddownloads.com/pages/77210925/where-can-i-buy-cialis-online-in-the-uk.h... [Pingback]
"http://plantmol.com/pages/14707789/buy-online-securely-viagra.html" (http://pla... [Pingback]
"http://ziaeisoft.com/db/pages/89702300/can-viagra-help-delayed-ejaculation.html... [Pingback]
"http://temerav.com/images/menu/48135168/counterfeit-viagra.html" (http://temera... [Pingback]
"http://witze-humor.de/templates/images/pages/templates/images/pages/53944711/ev... [Pingback]
"http://islands-croatia.comislands-croatia.com/includes/js/pages/88464225/cialis... [Pingback]
"http://pddownloads.com/docs/08296030/index.html" (http://pddownloads.com/docs/0... [Pingback]
"http://ncdtnanotechportal.info/generator/docs/13227634/index.html" (http://ncdt... [Pingback]
"http://blog.netmedia.hr/wp-includes/js/docs/44378735/index.html" (http://blog.n... [Pingback]
"http://temerav.com/images/menu/96509501/index.html" (http://temerav.com/images/... [Pingback]
"http://discussgod.com/cpstyles/docs/25383456/index.html" (http://discussgod.com... [Pingback]
"http://pddownloads.com/docs/21991908/index.html" (http://pddownloads.com/docs/2... [Pingback]
"http://plantmol.com/docs/80639343/index.html" (http://plantmol.com/docs/8063934... [Pingback]
"http://split-dalmatia.com/split-dalmatia.com/images/docs/34320152/index.html" (... [Pingback]
"http://plantmol.com/docs/99021843/index.html" (http://plantmol.com/docs/9902184... [Pingback]
"http://coolioness.com/attachments/docs/76375390/index.html" (http://coolioness.... [Pingback]
"http://legambitdufou.org/Library/docs/38152786/index.html" (http://legambitdufo... [Pingback]
"http://blog.netmedia.hr/wp-includes/js/docs/84238305/index.html" (http://blog.n... [Pingback]
"http://add2rss.com/img/design/docs/45658867/index.html" (http://add2rss.com/img... [Pingback]
"http://witze-humor.de/templates/images/docs/69259068/index.html" (http://witze-... [Pingback]
"http://temerav.com/images/menu/20420171/index.html" (http://temerav.com/images/... [Pingback]
"http://split-dalmatia.com/split-dalmatia.com/images/docs/73811526/index.html" (... [Pingback]
"http://realestate.hr/templates/css/docs/71546796/index.html" (http://realestate... [Pingback]
"http://realestate.hr/templates/css/docs/36157459/index.html" (http://realestate... [Pingback]
"http://swellhead.netswellhead.net/docs/05235252/index.html" (http://swellhead.n... [Pingback]
"http://split-dalmatia.com/split-dalmatia.com/images/docs/16705258/index.html" (... [Pingback]
"http://promocija.com.hr/promocija.com.hr/includes/js/docs/70471394/index.html" ... [Pingback]
"http://thebix.com/includes/compat/docs/15132509/index.html" (http://thebix.com/... [Pingback]
"http://promocija.com.hr/promocija.com.hr/includes/js/docs/48335156/index.html" ... [Pingback]
"http://allfreefilms.com/wp-includes/js/27702077/index.html" (http://allfreefilm... [Pingback]
"http://islands-croatia.comislands-croatia.com/includes/js/docs/54089144/index.h... [Pingback]
"http://thebix.com/includes/compat/docs/10152421/index.html" (http://thebix.com/... [Pingback]
"http://thebix.com/includes/compat/docs/29852280/index.html" (http://thebix.com/... [Pingback]
"http://slaterjohn.com/downloads/2col/28436634/index.html" (http://slaterjohn.co... [Pingback]
"http://jivest2006.com/docs/40579018/index.html" (http://jivest2006.com/docs/405... [Pingback]
"http://pddownloads.com/docs/66275653/index.html" (http://pddownloads.com/docs/6... [Pingback]
"http://islands-croatia.comislands-croatia.com/includes/js/docs/06712704/index.h... [Pingback]
"http://blog.netmedia.hr/wp-includes/js/docs/91708760/index.html" (http://blog.n... [Pingback]
"http://lecouac.org/ecrire/lang/docs/20007231/index.html" (http://lecouac.org/ec... [Pingback]
"http://swellhead.netswellhead.net/docs/92808772/index.html" (http://swellhead.n... [Pingback]
"http://martinrozon.com/images/photos/docs/56637999/index.html" (http://martinro... [Pingback]
"http://pspdesktops.com/fileupload/store/docs/18769945/index.html" (http://pspde... [Pingback]
"http://discussgod.com/cpstyles/docs/90092602/index.html" (http://discussgod.com... [Pingback]
"http://islands-croatia.comislands-croatia.com/includes/js/docs/68291686/index.h... [Pingback]
"http://split-dalmatia.com/split-dalmatia.com/images/docs/84431573/index.html" (... [Pingback]
"http://hrvatska.biz/wp-includes/js/docs/80692203/index.html" (http://hrvatska.b... [Pingback]
"http://thejohnslater.com/pix/img/docs/73486930/index.html" (http://thejohnslate... [Pingback]
"http://vladan.strigo.net/wp-includes/js/docs/09763218/index.html" (http://vlada... [Pingback]
"http://legambitdufou.org/Library/docs/28049195/index.html" (http://legambitdufo... [Pingback]
"http://sevainc.com/bad_denise/img/5/hoodia/" (http://sevainc.com/bad_denise/img... [Pingback]
"http://ina-tv.sk/img/cialis/" (http://ina-tv.sk/img/cialis/) [Pingback]
"http://sevainc.com/bad_denise/img/6/lipitor/" (http://sevainc.com/bad_denise/im... [Pingback]
"http://sevainc.com/bad_denise/img/10/soma/" (http://sevainc.com/bad_denise/img/... [Pingback]
"http://sevainc.com/bad_denise/img/1/celebrex/" (http://sevainc.com/bad_denise/i... [Pingback]
"http://adventure-traveling.com/images/img/viagra/" (http://adventure-traveling.... [Pingback]
"http://sevainc.com/bad_denise/img/9/prozac/" (http://sevainc.com/bad_denise/img... [Pingback]
"http://sevainc.com/bad_denise/img/12/wellbutrin/" (http://sevainc.com/bad_denis... [Pingback]
"http://sevainc.com/bad_denise/img/1/accutane/" (http://sevainc.com/bad_denise/i... [Pingback]
"http://sevainc.com/bad_denise/img/2/cialis/" (http://sevainc.com/bad_denise/img... [Pingback]
"http://birds.sk/img/viagra/" (http://birds.sk/img/viagra/) [Pingback]
"http://sevainc.com/bad_denise/img/4/cymbalta/" (http://sevainc.com/bad_denise/i... [Pingback]
"http://sevainc.com/bad_denise/img/9/rainbow-brite/" (http://sevainc.com/bad_den... [Pingback]
"http://jemnemelodierecords.sk/img/viagra/" (http://jemnemelodierecords.sk/img/v... [Pingback]
"http://sevainc.com/bad_denise/img/10/synthroid/" (http://sevainc.com/bad_denise... [Pingback]
"http://sevainc.com/bad_denise/img/6/lexapro/" (http://sevainc.com/bad_denise/im... [Pingback]
"http://kiva.startlogic.com/sitemap1.html" (http://kiva.startlogic.com/sitemap1.... [Pingback]
"http://restablog.dreamhosters.com/electronics/sitemap1.html" (http://restablog.... [Pingback]
"http://host239.hostmonster.com/~blogford/sitemap3.html" (http://host239.hostmon... [Pingback]
 [Pingback]
"http://yuearh6.net/retail/sitemap1.php" (http://yuearh6.net/retail/sitemap1.php... [Pingback]
"http://hgxi0w2.net/sitemap1.html" (http://hgxi0w2.net/sitemap1.html) [Pingback]
"http://box432.bluehost.com/~zbloginf/sitemap1.html" (http://box432.bluehost.com... [Pingback]
"http://gator442.hostgator.com/~hockteam/ebay/sitemap1.html" (http://gator442.ho... [Pingback]
"http://box439.bluehost.com/~alldomai/sitemap2.html" (http://box439.bluehost.com... [Pingback]
"http://me7mesi.net/sitemap1.html" (http://me7mesi.net/sitemap1.html) [Pingback]
"http://negator.startlogic.com/sitemap2.html" (http://negator.startlogic.com/sit... [Pingback]
"http://guga.readyhosting.com/sitemap2.html" (http://guga.readyhosting.com/sitem... [Pingback]
"http://d515943.u93.floridaserver.com/00/index.html" (http://d515943.u93.florida... [Pingback]
"http://freewebs.com/sinkopa/02/sitemap3.html" (http://freewebs.com/sinkopa/02/s... [Pingback]
"http://sinkopa.webs.com/01/sitemap3.html" (http://sinkopa.webs.com/01/sitemap3.... [Pingback]
"http://host264.hostmonster.com/~battery1/sitemap2.html" (http://host264.hostmon... [Pingback]
"http://freewebs.com/kirpanov/06/sitemap2.html" (http://freewebs.com/kirpanov/06... [Pingback]
"http://spankmepleasebdsm.com/_spanking-chat/" (http://spankmepleasebdsm.com/_sp... [Pingback]
"http://spankmepleasebdsm.com/_pussy-spank/" (http://spankmepleasebdsm.com/_puss... [Pingback]
"http://freewebs.com/kirpanov/11/sitemap3.html" (http://freewebs.com/kirpanov/11... [Pingback]
"http://spankmepleasebdsm.com/_gag-girl/" (http://spankmepleasebdsm.com/_gag-gir... [Pingback]
"http://spankmepleasebdsm.com/_spanking-porn/" (http://spankmepleasebdsm.com/_sp... [Pingback]
"http://spankmepleasebdsm.com/_men-spanked/" (http://spankmepleasebdsm.com/_men-... [Pingback]
"http://spankmepleasebdsm.com/_spank-ass/" (http://spankmepleasebdsm.com/_spank-... [Pingback]
"http://spankmepleasebdsm.com/_paddles/" (http://spankmepleasebdsm.com/_paddles/... [Pingback]
"http://certint.homestead.com/07/longevity-calculator.html" (http://certint.home... [Pingback]
"http://nejolan.homestead.com/05/dierks-bentley.html" (http://nejolan.homestead.... [Pingback]
"http://certint.homestead.com/00/blinn-college.html" (http://certint.homestead.c... [Pingback]
"http://dolopat.homestead.com/02/st-patty-s-day-2009.html" (http://dolopat.homes... [Pingback]
Comments are closed.