So I was able to debug it. Sorry I did it so late but didn't have much time recently.
The problem seems that the itemWeight value is 10 and there are only 0 to 8 cssClasses so the expression cssClasses[itemWeight - 1] is really cssClasses[9] so it doeasn't exist. :-/
The exception details are below:
-----------------------
System.IndexOutOfRangeException was unhandled by user code
Message="Index was outside the bounds of the array."
Source="mojoPortal.Web"
StackTrace:
at mojoPortal.Web.UI.TagCloudControl.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) in C:\work\mojoPortal\Web\Controls\TagCloudControl.cs:line 326
at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at mojoPortal.Web.BlogUI.BlogCategories.BindCategories()
at mojoPortal.Web.BlogUI.BlogCategories.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
-------------------
Best regards,
Przemek