EnergySaver
  • Posts: 2
  • Joined: 22/08/2013
I'm using the code from the latest commit from GitHub, which I downloaded as YAFNET-master.zip on 8/22/2013.

I am doing what is described in this  forum post and have essentially the same problem.

My URL when the exception occurs ends with:

yaf_admin_editcategory.aspx?g=admin_editcategory

Steps:

1. Download and install latest version from GitHub.
2. Go to Administration > Forums
3. Click on New Category
4. Enter category name and click save
5. Exception occurs

Exception text:

Server Error in '/' Application.
Cannot implicitly convert type 'decimal' to 'int'. An explicit conversion exists (are you missing a cast?)
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: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'decimal' to 'int'. An explicit conversion exists (are you missing a cast?)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[RuntimeBinderException: Cannot implicitly convert type 'decimal' to 'int'. An explicit conversion exists (are you missing a cast?)]
CallSite.Target(Closure , CallSite , Object ) +216
System.Dynamic.UpdateDelegates.UpdateAndExecute1(CallSite site, T0 arg0) +924
YAF.Core.Model.CategoryRepositoryExtensions.Save(IRepository`1 repository, Nullable`1 categoryID, String name, String categoryImage, Int16 sortOrder, Nullable`1 boardId) +922
YAF.Pages.Admin.editcategory.Save_Click(Object sender, EventArgs e) +743
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +155
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044
Sponsor
tha_watcha
  • Posts: 4132
  • Joined: 06/03/2010
It is now correctly fixed.
UserPostedImage
EnergySaver
  • Posts: 2
  • Joined: 22/08/2013
Thanks. Confirmed fixed.
Users browsing this topic
    Forum Jump  
    • You cannot post new topics in this forum.
    • You cannot reply to topics in this forum.
    • You cannot delete your posts in this forum.
    • You cannot edit your posts in this forum.
    • You cannot create polls in this forum.
    • You cannot vote in polls in this forum.

    About Us

    The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

    Powered by Resharper Donate with PayPal button

    Project Twitter Updates

    Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved