Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Brendan Rice 538 posts 1102 karma points
    Sep 21, 2010 @ 18:51
    Brendan Rice
    0

    Umbraco membership events not working

    I have 2 projects in the same solution as my Umbraco website BLL.dll and UI.dll (shortened names).

    I have the following class in my BLL project that looks like this:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using umbraco.cms.businesslogic.member;
    using umbraco.BusinessLogic;
    using umbraco.cms.businesslogic;
    using umbraco.cms.businesslogic.web;


    namespace MailChimp4Umbraco.Userinterface
    {
        public class UmbracoMembershipIntegration :  ApplicationBase
        {
            public UmbracoMembershipIntegration()
            {
                Member.BeforeSave += new Member.SaveEventHandler(Member_BeforeSave);
                Member.AfterSave += new Member.SaveEventHandler(Member_AfterSave);
            }

            public void Member_BeforeSave(Member sender, umbraco.cms.businesslogic.SaveEventArgs e)
            {
                throw new Exception("How can I debug this");
            }

            public void Member_AfterSave(Member sender, umbraco.cms.businesslogic.SaveEventArgs e)
            {
                var test = 1;
            }
        }
    }


     

    I have referenced the UI project in the website (as well as tried as post build event to copy the dlls) and put a breakpoints in the above constructor, then attached to the w3wp.exe process from VS to debug.

    My breakpoint never gets hit, the exception never gets thrown.  Can anyone help please?

     

     

  • Brendan Rice 538 posts 1102 karma points
    Sep 22, 2010 @ 16:10
    Brendan Rice
    0

    Still looking for a fix for this if anyone knows please help.

  • Mark 6 posts 28 karma points
    Dec 05, 2011 @ 17:53
    Mark
    0

    Bump. I have this issue too. 4.7.1.

    Looks like it was raise in 4.5.x, then closed. (http://umbraco.codeplex.com/workitem/28514)

    Thanks for any help with this.

    Mark

  • Trevor Loader 199 posts 256 karma points
    Dec 10, 2012 @ 03:47
    Trevor Loader
    0

    Did you guys ever find a fix for this (or get it working?)

    Thanks, Trevor

  • Alexander 35 posts 85 karma points
    Feb 08, 2014 @ 11:35
    Alexander
    0

    I have the same issue, please contact me web.kpaba@gmail.com if you know the solution.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies