标签:类型 bsp view mis let 必须 list test RoCE
ylbtech-Error-ASP.NET:无效的 JSON 基元: object。 |
1.返回顶部 |
行 23: txt.Text = jsonStr;
行 24: JavaScriptSerializer json = new JavaScriptSerializer();
行 25: IList<Sinopec.CMS.Attachment.DataAccess.AM_AttachmentInfo> newAttachmentList = json.Deserialize<IList<Sinopec.CMS.Attachment.DataAccess.AM_AttachmentInfo>>( jsonStr );
行 26: this.GridView1.DataSource = newAttachmentList;
行 27: this.GridView1.DataBind();
|
[ArgumentException: 无效的 JSON 基元: object。] System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject() +597807 System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) +226 System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeList(Int32 depth) +186 System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) +194 System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) +78 System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) +44 System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(String input) +70 Default5.btnShowAccordingInfo_Click(Object sender, EventArgs e) in d:\sinopec\stage2-cmis\Sinopec.CMS.Web\Default5.aspx.cs:25 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9782378 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +204 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1639 |
2.返回顶部 |
3.返回顶部 |
4.返回顶部 |
5.返回顶部 |
6.返回顶部 |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |
Error-ASP.NET:无效的 JSON 基元: object。
标签:类型 bsp view mis let 必须 list test RoCE
原文地址:https://www.cnblogs.com/storebook/p/12002960.html