forum feature with sqlitedb error.

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.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
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.
This thread is closed to new posts. You must sign in to post in the forums.
5/16/2008 7:02:48 AM
Gravatar
Total Posts 59

forum feature with sqlitedb error.

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!

 

5/16/2008 11:13:53 AM
Gravatar
Total Posts 18439

Re: forum feature with sqlitedb error.

I will look into this during the weekend and post again when its fixed.

Thanks,

Joe

5/17/2008 5:52:59 AM
Gravatar
Total Posts 18439

Re: forum feature with sqlitedb error.

I committed the fix for this last night, so if you do svn update and rebuild it should be fixed.

Thanks,

Joe

5/17/2008 8:06:49 AM
Gravatar
Total Posts 59

Re: forum feature with sqlitedb error.

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.

      Thanks!

 

 

5/17/2008 8:33:06 AM
Gravatar
Total Posts 18439

Re: forum feature with sqlitedb error.

You are right. I've fixed those now if you svn update again.

Best,

Joe

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