View Single Post
 
Old June 10th, 2008, 03:42 AM
robzyc robzyc is offline
Friend of Wrox
 
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

OK, I have made changes and still having problems! :(

I have now created an interface for each main component, and implemented the interface in each of the actual components.

The probem is exactly the same now, since I cannot set the return type of the web service to an interface, since they cannot be serialized. And when I try and perform a cast to cast it to the interface it comes back with this [new] error:
Code:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Method Pages.GetList can not be reflected. ---> System.InvalidOperationException: There was an error reflecting 'GetListResult'. ---> System.NotSupportedException: Cannot serialize interface HTEC.Online.Presentation.Pages.ISerializableList.
How come this cannot be reflected? GetList is returning a SerializableList type, which works fine unless I try and cast it to the interface..

Do I need to add something to the interface?

Damn, I really thought it was going to work! :(

Rob
http://cantgrokwontgrok.blogspot.com