Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Sep 29, 2011 @ 11:37
    Jeroen Breuer
    0

    Events not being fired

    Hello,

    I've got 2 custom dll's in my bin folder and both fire events. Somehow only the events of project 2 are being fired. The contructor in which I add the events isn't even hit in project 1. What could be wrong? I tried renaming the namespace and dll, but it still doesn't work.

    Jeroen

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 29, 2011 @ 11:42
    Sebastiaan Janssen
    0

    No idea, but try something simple like putting a dummy class in project 2, with a method that just returns "Hello world" or something. If you can use that from Razor, then at least your dll is picked up correctly. If not.. then you're doing it wrong. ;-)

  • Simon steed 376 posts 688 karma points
    Sep 29, 2011 @ 11:43
    Simon steed
    2

    Are you sure you are referenceing the correct version of the Umbraco dll's? I had a similar problem when events were not being triggered after an update from 4.5.2 -> 4.7 - I'd forgotten to update the references in my Class Library project, once I did that the code worked and events fired again.

    Can you debug and trace through? If not try relinking the core dlls again

    Si

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 29, 2011 @ 11:44
    Sebastiaan Janssen
    0

    @Simon Nice one!! :D

  • Simon steed 376 posts 688 karma points
    Sep 29, 2011 @ 11:45
    Simon steed
    0

    :-P

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Sep 29, 2011 @ 11:48
    Jeroen Breuer
    0

    @cultiv I tried a simple usercontrol and added a breakpoint to the page load. That get's fired.

    @Simon That's the first thing I looked at, but will double check to make sure :)

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Sep 29, 2011 @ 12:05
    Jeroen Breuer
    0

    Found it!

    All the Umbraco dll's where referencing to the correct version, but I also added some references to dll's in my project which I forgot to put in the bin folder :s.

    So I added those dll's and now everythings working again :).

    Jeroen

  • Simon steed 376 posts 688 karma points
    Sep 29, 2011 @ 12:35
    Simon steed
    0

    Whoop whoop more Karma for me :-) Glad you got it sorted

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Sep 29, 2011 @ 23:27
    Jeroen Breuer
    0

    Another thing I should mention is that I also use the Razor DataType Models and they didn't work either until I fixed this problem. So it could break a lot more than just not firing events.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft