I'm trying to create a custom exception handler for the exception handling block of enterprise library 5.0. As far as I understand I need to start the class off with the attribute "[ConfigurationElementType(typeof(CustomHandlerData))]". But I get an error stating the ConfigurationElementType is not an attribute class.
Does anyone know what might be going on?
Try adding the keyword Attribute after ConfigurationElementType. It is not required, but this may get you to a more helpful error message... my guess would be that you are missing references... that's always the problem with EntLib.
Be sure to add the reference to the System.ComponentModel.Compostion or Sytem.ComponentModel.DataAnnotations to your project under Project-Add References .Net tab.
Then you should be able to include 'using System.ComponentModel;' in your project to get your attributes working properly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With