Widget disappears sometimes

Topics: Controls
Jun 30, 2011 at 3:40 PM
Edited Jun 30, 2011 at 3:52 PM

Hello, I just upgraded to 2.5 (which is great) but now every once in a while I'll receive the following error:

 

Widget Category list not found.

Index was outside the bounds of the array

also saw this in the error log...

Date: 6/30/2011 9:32:14 AM
Contents Below
Url : http://www.domain.com/Blogs/admin/WidgetEditor.aspx?add=Category list&zone=be_WIDGET_ZONE&rnd=0.37061782174737967
Raw Url : /Blogs/admin/WidgetEditor.aspx?add=Category%20list&zone=be_WIDGET_ZONE&rnd=0.37061782174737967
Message : Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source : System.Web
StackTrace :    at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.admin_widgeteditor_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\blogs\b15b90e4\3c8369ac\App_Web_m0rfse0z.9.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
TargetSite : Boolean HandleError(System.Exception)
Message : Index was outside the bounds of the array.
Source : mscorlib
StackTrace :    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value)
   at App_Code.Controls.CategoryList.get_ShowRssIcon() in c:\inetpub\wwwroot\BE\App_Code\CSCode\Controls\CategoryList.cs:line 90
   at App_Code.Controls.CategoryList.set_ShowRssIcon(Boolean value) in c:\inetpub\wwwroot\BE\App_Code\CSCode\Controls\CategoryList.cs:line 97
   at Widgets.CategoryList.Widget.LoadWidget() in c:\inetpub\wwwroot\BE\widgets\Category list\widget.ascx.cs:line 65
   at Admin.WidgetEditor.AddWidget(String type, String zone) in c:\inetpub\wwwroot\BE\admin\WidgetEditor.aspx.cs:line 107
   at Admin.WidgetEditor.OnInit(EventArgs e) in c:\inetpub\wwwroot\BE\admin\WidgetEditor.aspx.cs:line 73
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
TargetSite : Void Insert(TKey, TValue, Boolean)

 

If I clear the cache (by saving the Web.config) it works again for a little bit, then it happens again.

Any thoughts?

Thanks,Kelton

Sep 20, 2011 at 8:46 AM

I too get it..

Widget Category list not found.

Unable to cast object of type 'ASP.themes_standard_widgetcontainer_ascx' to type 'App_Code.Controls.WidgetContainer'.X

Widget Administration not found.

Unable to cast object of type 'ASP.themes_standard_widgetcontainer_ascx' to type 'App_Code.Controls.WidgetContainer'.X

Widget Search not found.

Unable to cast object of type 'ASP.themes_standard_widgetcontainer_ascx' to type 'App_Code.Controls.WidgetContainer'.X

Widget Tag cloud not found.

Unable to cast object of type 'ASP.themes_standard_widgetcontainer_ascx' to type 'App_Code.Controls.WidgetContainer'.X

Widget Calendar not found.

Unable to cast object of type 'ASP.themes_standard_widgetcontainer_ascx' to type 'App_Code.Controls.WidgetContainer'.X

Widget Blogroll not found.

Unable to cast object of type 'ASP.themes_standard_widgetcontainer_ascx' to type 'App_Code.Controls.WidgetContainer'.X

Widget Newsletter not found.

Unable to cast object of type 'ASP.themes_standard_widgetcontainer_ascx' to type 'App_Code.Controls.WidgetContainer'.X

Did you find any solution to fix this?

Sep 20, 2011 at 1:09 PM
Edited Sep 20, 2011 at 1:09 PM

rajeshvar,

No, I had to remove the widget and build a new one of just hyperlinks. Not 100% what I wanted, but it works.

Good luck, let me know if you find out anything else.