Blog tag cloud bug?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/18/2009 5:48:20 AM
Gravatar
Total Posts 37

Re: Blog tag cloud bug?

I will do that today and will post my results here.

 

Przemek

8/29/2009 5:26:27 AM
Gravatar
Total Posts 37

Re: Blog tag cloud bug?

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

8/29/2009 11:53:28 AM
Gravatar
Total Posts 18439

Re: Blog tag cloud bug?

Hi Przemek,

Thanks for debugging this. It should now be fixed in the new release and I will have it in svn trunk by tonight.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.