Author: priyajee8 | Posted on: 9/24/2009 7:53:20 AM | Views : 612

Hai,
  I'm trying to add datas from a third party Webservice Method..But it 's showing the following error as "Input array is longer than the number of columns in this table."
Below is my code:
Public Function GetData() As DataTable Dim client As CurrencyConverter = New CurrencyConverter() Dim dt As New DataTable dt.Columns.Add("Currency", GetType(String)) dt = HttpContext.Current.Cache.Get("MyData") If dt Is Nothing Then Dim mydt As New DataTable For Each listofcurrencies As CurrencyListRow In client.GetSupportedCurrencies mydt.Rows.Add(listofcurrencies.CurrencyShortName) Next HttpContext.Current.Cache.Insert("MyData", mydt, Nothing, DateTime.Now.AddHours(1), Cache.NoSlidingExpiration) Return mydt Else ...

Go to the complete details ...