Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Problem returning Custom Collection from Web Service.

Thread Tools

Problem returning Custom Collection from Web Service.
Posts: n/a
I have a web service which returns a custom collection of custom object
types which works great when called from an ASPX page. The problem is I
am trying to call the same web service from an assembly and I am
getting the following error.

Unable to cast object of type '[WebServiceName].SkinSession[]' to type

I realize the .NET 2.0 serialization is converting the collection to an
array, but for some reason, in the assembly, it does not appear to be
deserializing the XMLNode[] that comes back from the web service.

Again, It works great in the ASPX page, but not in an Assembly. I have
been all over the web and tried many different suggestions without any

Anybody have any ideas?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Řyvind Isaksen ASP .Net 1 05-18-2007 09:24 AM
Returning custom collection from a webservice Rodney ASP .Net Web Services 1 09-12-2006 09:04 PM
Update Custom Collection that is bound to DataGrid made up of Custom COlumns Terry Holland ASP .Net Datagrid Control 9 10-28-2005 06:20 AM
Error when returning a collection from a web service Simon Harris ASP .Net 3 04-28-2005 01:18 PM
Web Custom Control & Custom Collection problem Donald Simpson ASP .Net Web Controls 0 07-11-2003 07:52 AM