“/”应用程序中的服务器错误。

Error reading JObject from JsonReader. Path '', line 0, position 0.

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.

源错误:


行 215:                        product.getproductbyessearch = true;
行 216:
行 217:                        var prolist1 = product.getproducts(10, 1);
行 218:                        foreach (var pro1 in prolist1.list)
行 219:                        {

源文件: f:\WebSite\web2019\www.biolianshuo.com\content\xtheme\zhejianglianshuo\product.aspx    行: 217

堆栈跟踪:


[JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.]
   Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) +275
   Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) +83
   Newtonsoft.Json.Linq.JObject.Parse(String json) +6
   Web960.BLL.ESSearch.SearchHelper.Search(String key, JObject filterjo, Int32 pagesize, Int32 page, Int32& total, String catalogno) in F:\TFS\2020\960CloudWebSql\ReleaseBranch\V3.2Branch\ZJLianShuo2020\BLL\ESSearch\SearchHelper.cs:539
   fn.product.getproducts(Int32 psize, String orderby, Int32 descorasc) in F:\TFS\2020\960CloudWebSql\ReleaseBranch\V3.2Branch\ZJLianShuo2020\Web960Tmp\product.cs:219
   fn.product.getproducts(Int32 psize, Int32 orderby) in F:\TFS\2020\960CloudWebSql\ReleaseBranch\V3.2Branch\ZJLianShuo2020\Web960Tmp\product.cs:182
   ASP.content_xtheme_zhejianglianshuo_product_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in f:\WebSite\web2019\www.biolianshuo.com\content\xtheme\zhejianglianshuo\product.aspx:217
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1303


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.6.1586.0