Problem returning Custom Collection from Web Service.

Discussion in 'ASP .Net Web Services' started by dazmathome@hotmail.com, Mar 13, 2006.

  1. Guest

    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
    '[WebServiceName].SkinSession[]'.

    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
    success.

    Anybody have any ideas?
     
    , Mar 13, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon Harris
    Replies:
    3
    Views:
    2,424
    Matt Berther
    Apr 28, 2005
  2. Øyvind Isaksen
    Replies:
    1
    Views:
    1,037
    Øyvind Isaksen
    May 18, 2007
  3. Donald Simpson

    Web Custom Control & Custom Collection problem

    Donald Simpson, Jul 11, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    145
    Donald Simpson
    Jul 11, 2003
  4. Iain

    Returning a custom class in a Web Service

    Iain, Jul 3, 2004, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    140
  5. Rodney

    Returning custom collection from a webservice

    Rodney, Sep 12, 2006, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    122
    Rodney
    Sep 12, 2006
Loading...

Share This Page