首页 文章

WebFormsSearchDemo出错

提问于
浏览
0

我正在使用WebFormsSearchDemo项目 . 当我尝试进行搜索时,会出现以下错误:

JsonData实例不包含int描述:在执行当前Web请求期间发生未处理的异常 . 请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息 .

异常详细信息:System.InvalidOperationException:JsonData实例不包含int

来源错误:

第27行:选择搜索;第28行:第29行:var searching = searchResults.First();第30行:第31行:SearchResultListView.DataSource = searching.Statuses;

源文件:c:\ Users \ Phill \ Copy \ Development \ WebFormsDemos_2.1.07 \ WebFormsDemos \ WebFormsSearchDemo \ Results.aspx.cs行:29

堆栈跟踪:

[InvalidOperationException:JsonData实例不包含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系统 . Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)35 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)1724

有什么想法吗?

1 回答

相关问题