This project is read-only.
1

Resolved

Error rendering control

description

After adding a "LikeBox Control" (from Facebook Graph Toolkit.dll 1.1.4084.25114) to a webform and after setting a value to FacebookID property, the control doesn't render properly, instead it says: Error rendering control - An unhandled exception has occurred. Object reference not set to an instance of an object.

comments

kayson wrote Mar 24, 2011 at 8:40 AM

That is a known problem when trying to preview the control in Design View, but should be ok when deploying to the server.

HernanZini wrote Mar 28, 2011 at 12:58 PM

Now I get "Cannot convert invalid JSON String to Json Object" in both design and run-time. What I'm doing wrong?
Thanks in advance.

Stack Trace:


[ArgumentException: Cannot convert invalid JSON String to Json Object]
JSON.JsonObject..ctor(String JsonString) +727
Facebook_Graph_Toolkit.Helpers.WebResponseHelper.GetJsonFromFacebookObject(String ID, String AccessToken) +50
Facebook_Graph_Toolkit.LikeBox.RenderContents(HtmlTextWriter output) +115
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +173
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
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) +3060

wrote Apr 8, 2011 at 6:28 AM

wrote Apr 11, 2011 at 10:33 AM

kayson wrote Apr 11, 2011 at 10:33 AM

fixed in release 1.3.

wrote Feb 14, 2013 at 7:29 PM

wrote May 16, 2013 at 9:43 AM

wrote May 16, 2013 at 9:43 AM

wrote Jun 14, 2013 at 8:04 AM