WebFormsSearchDemo出错:"JsonData instance doesn't hold an int"



我正在使用WebFormsSearchDemo项目。当我尝试进行搜索时,它会错误地显示以下详细信息:

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:UsersPhillCopyDevelopmentWebFormsDemos_2.1.07WebFormsDemosWebFormsSearchDemoResults.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:UsersPhillCopyDevelopmentWebFormsDemos_2.1.07WebFormsDemosWebFormsSearchDemoResults.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

知道为什么吗?

看起来这可能已经被更新的LinqToTwitter 2.1.10版本修复了。查看这里的讨论:

https://linqtotwitter.codeplex.com/discussions/463085

相关内容

最新更新