Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: How to pass files as arguments to Web Service Method?


Message #1 by "Uma M" <maheswarim@c...> on Fri, 20 Apr 2001 12:31:35 +0530
hi all,



Can't we pass a file object as a parameter to Web Service Method?



When I tried this,  this is the Exception I get



	System.Exception: Error reflecting method WebService1.HelloWorld. --->

System.Exception: 	Error reflecting 'txtfile'.

	Can not serialize 'System.IO.File' because it does not have default public

constructor. 	---> System.Exception: Can not serialize 'System.IO.File'

because it does not have default 	public constructor.



So, how else can we pass a file from the client to .Net Service?  Any

alternatives...

Please help me out.



Regards,

Uma




  Return to Index