This project is read-only.
1
Vote

Error converting value "3760000000" to type 'System.Int32'.

description

It gives error if we search www in the search text box
I couldn't find where is int used which is not enough to store the value

comments

afzal_gujrat wrote Oct 10, 2013 at 12:50 PM

GoogleService.cs
ICursor cursor = JsonConvert.DeserializeObject<Cursor>(cursorJson.ToString());
on this line it gives error

need to change
public interface ICursor
{
    IList<IPage> Pages { get; set; }
    long EstimatedResultCount { get; set; }
    long CurrentPageIndex { get; set; }
    string MoreResultsURL { get; set; }
}
int to long

public class Cursor : ICursor
{
    #region ICursor Members

    [JsonIgnore]
    public IList<IPage> Pages
    {
        get;
        set;
    }

    /// <summary>
    /// Gets or sets the estimated result count.
    /// </summary>
    /// <value>The estimated result count.</value>
    [JsonProperty("estimatedResultCount")]
    public long EstimatedResultCount
    {
        get;
        set;
    }

    /// <summary>
    /// Gets or sets the index of the current page.
    /// </summary>
    /// <value>The index of the current page.</value>
    [JsonProperty("currentPageIndex")]
    public long CurrentPageIndex
    {
        get;
        set;
    }

    /// <summary>
    /// Gets or sets the more results URL.
    /// </summary>
    /// <value>The more results URL.</value>
    [JsonProperty("moreResultsUrl")]
    public string MoreResultsURL
    {
        get;
        set;
    }

    #endregion
}
here as well