This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.
When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:
Hi, Joe.
I use the newest svn code, sqlitedb . I new a page with forum feature, I new a topic or view the topic, error occurs:
////////////////////////////////////////////////////////////////////
Server Error in '/' Application. --------------------------------------------------------------------------------
Specified cast is not valid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Specified cast is not valid.
Source Error:
Line 42: </div> Line 43: <div class="forumpostuserattribute"> Line 44: <portal:ForumUserThreadLink id="lnkUserPosts" runat="server" UserId='<%# DataBinder.Eval(Container.DataItem,"UserID") %>' TotalPosts='<%# DataBinder.Eval(Container.DataItem,"PostAuthorTotalPosts") %>' /> Line 45: </div> Line 46: </div>
Source File: i:\company\mojoportal\Web\ForumThreadView.aspx Line: 44
Stack Trace:
[InvalidCastException: Specified cast is not valid.] ASP.forumthreadview_aspx.__DataBinding__control8(Object sender, EventArgs e) in i:\company\mojoportal\Web\ForumThreadView.aspx:44 System.Web.UI.Control.OnDataBinding(EventArgs e) +99 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +206 System.Web.UI.Control.DataBind() +12 System.Web.UI.Control.DataBindChildren() +204 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216 System.Web.UI.Control.DataBind() +12 System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +130 System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +454 System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +53 System.Web.UI.WebControls.Repeater.DataBind() +72 mojoPortal.Web.ForumUI.ForumThreadView.PopulateControls() in I:\company\mojoportal\Web\ForumThreadView.aspx.cs:205 mojoPortal.Web.ForumUI.ForumThreadView.Page_Load(Object sender, EventArgs e) in I:\company\mojoportal\Web\ForumThreadView.aspx.cs:120 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
//////////////////////////////////////////////////////////////////////////////////////////
I need your help!
Thanks!
I will look into this during the weekend and post again when its fixed.
Thanks,
Joe
I committed the fix for this last night, so if you do svn update and rebuild it should be fixed.
Hi, Joe
Thanks, View topic is ok, but edit topic still errors.
So maybe all *.aspx pages that have portal:ForumUserThreadLink control should be changed too.
e.g ForumPostEdit.aspx, MemberList.aspx need changed too.
You are right. I've fixed those now if you svn update again.
Best,