Hi Karthikeyan,
See below example for how this type of exception occurs.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MyAnswers
{
class Program
{
static void Main(string[] args)
{
try
{
Dictionary<int, string> objDic = new Dictionary<int, string>();
objDic.Add(1, "A");
objDic.Add(2, "B");
Console.Write(objDic[3]);
Console.Read();
}
catch(Exception ex)
{
Console.Write(ex);
Console.Read();
}
}
}
}
If we had tried to get the values of the keys 1,2 from the dictionary it would have worked fine.
I hope,now you have understood how this occurs.Debug it and check that from where this problem coming(service side or in your ASP .NET code).
Thanks,
Anil