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.
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. ;-)
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
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 :).
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.
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
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. ;-)
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
@Simon Nice one!! :D
:-P
@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
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
Whoop whoop more Karma for me :-) Glad you got it sorted
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
is working on a reply...