Getting error when try fetch the the object which has Dictionary(Of Integer, Integer)/Dictionary(Of Long, Long) as a property

12 views
Skip to first unread message

ganapati...@pearson.com

unread,
Sep 7, 2016, 8:13:30 AM9/7/16
to Redis DB
Hi All

I m agetting below exception when  try fetch the the object which has Dictionary(Of Integer, Integer)/Dictionary(Of Long, Long) as a property

An unhandled exception of type 'System.IndexOutOfRangeException' occurred in ServiceStack.dll

Using below client for Redis:

ServiceStack

ServiceStack.Interfaces

ServiceStack.ServiceInterface


below is the code snippet:


Imports ServiceStack.Redis

Module Module1


    Sub Main()


        Dim _sourceClient As New RedisClient()


        Dim dictonary As New Class1

        dictonary.dictionary1.Add(543, 678)


        _sourceClient.Set(Of Class1)("Key1", dictonary)


        _sourceClient.Get(Of Class1)("Key1")

    End Sub


    Public Class Class1

        Public Property dictionary1 As New Dictionary(Of Integer, Integer)

    End Class


End Module


I m looking for help here.Please do needful


Regards

Ganapati Bhagwat


Reply all
Reply to author
Forward
0 new messages