Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Error with WebFormsSearchDemo

$
0
0
Im using the WebFormsSearchDemo project. When I try doing a search it errors out with the following details:

JsonData instance doesn't hold an int
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: JsonData instance doesn't hold an int

Source Error:


Line 27: select search;
Line 28:
Line 29: var searched = searchResults.First();
Line 30:
Line 31: SearchResultListView.DataSource = searched.Statuses;


Source File: c:\Users\Phill\Copy\Development\WebFormsDemos_2.1.07\WebFormsDemos\WebFormsSearchDemo\Results.aspx.cs Line: 29

Stack Trace:


[InvalidOperationException: JsonData instance doesn't hold an int]
LinqToTwitter.TwitterQueryProvider.Execute(Expression expression) +763
System.Linq.Queryable.First(IQueryable`1 source) +251
WebFormsSearchDemo._Default.btnSubmit_Click(Object sender, EventArgs e) in c:\Users\Phill\Copy\Development\WebFormsDemos_2.1.07\WebFormsDemos\WebFormsSearchDemo\Results.aspx.cs:29
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9615682
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724


Any ideas why?

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>