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?
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:
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?
Hi Brendan,
Couple of things to check - sorry if they sound simple and/or you've already checked them.
Let us know if you make any progress.
Cheers, Lee.
This mysteriously started working, nothing changed since yesterday but I am now able to debug it, I am putting it down to gremlins.
Edit: Brendon edited the previous comment ... all working now - great!
is working on a reply...