RETURNING HASHTABLE FROM WEBSERVICE

Discussion in 'ASP .Net Web Services' started by VSK, Oct 22, 2003.

  1. VSK

    VSK Guest

    Hi all,

    The definition of Hashtable as per .NET docmentation is :
    [Serializable]
    public class Hashtable : IDictionary, ICollection, IEnumerable,
    ISerializable, IDeserializationCallback, ICloneable

    When Hashtable implements Serializable interface why am getting this
    exception when i try to use Hashtable in webservice.
    Error message is : "System.NotSupportedException: The type
    System.Collections.Hashtable is not supported because it implements
    IDictionary"

    Is the above message saying that Hashtable cannot be serailized or something
    else.

    Please throw some light on the issue.

    Thanks
    VSK
    VSK, Oct 22, 2003
    #1
    1. Advertising

  2. VSK

    VSK Guest

    FOUND THIS ARTICLE AND ANSWER TO MY QUETSION
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/html/xml01202003.asp


    "VSK" <> wrote in message
    news:%...
    > Hi all,
    >
    > The definition of Hashtable as per .NET docmentation is :
    > [Serializable]
    > public class Hashtable : IDictionary, ICollection, IEnumerable,
    > ISerializable, IDeserializationCallback, ICloneable
    >
    > When Hashtable implements Serializable interface why am getting this
    > exception when i try to use Hashtable in webservice.
    > Error message is : "System.NotSupportedException: The type
    > System.Collections.Hashtable is not supported because it implements
    > IDictionary"
    >
    > Is the above message saying that Hashtable cannot be serailized or

    something
    > else.
    >
    > Please throw some light on the issue.
    >
    > Thanks
    > VSK
    >
    >
    VSK, Oct 22, 2003
    #2
    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. Karuppasamy

    WebService – Returning an Object

    Karuppasamy, Jan 15, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    533
    Karuppasamy
    Jan 15, 2004
  2. Web Team @ Borough of Poole

    Returning CollectionBase from WebService

    Web Team @ Borough of Poole, Apr 27, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    1,296
    Web Team @ Borough of Poole
    Apr 27, 2005
  3. DaBeef
    Replies:
    5
    Views:
    3,068
  4. Replies:
    11
    Views:
    654
    Christos Georgiou
    May 2, 2006
  5. Asim Qazi

    Returning Object From Webservice

    Asim Qazi, Oct 16, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    312
    Asim Qazi
    Oct 16, 2006
Loading...

Share This Page