This project is read-only.

Problem in deleting first post

Topics: Controls
Aug 15, 2007 at 9:54 AM
Hi developers,

When I run the project and delete first post, I get an exception about negative indexes at App_Code/Controls/MonthList.cs line 45 :
DateTime first = DateTime.Parse(Post.PostsPost.Posts.Count - 1.DateCreated.Date.ToString("yyyy-MM-") + "01");

Exception message:
"Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"
Aug 15, 2007 at 11:06 AM
By the way, I just add this line afer _Months.Clear(); :
if (Post.Posts.Count > 0)
//until -near!- end of method

I hope it doesn't affects on other parts.
Aug 15, 2007 at 11:32 AM
This has been fixed in the latest source code. The bug still remains in the 1.1 release though