I'm using Health Monitoring in an ASP.Net 2 web site. I've got it mostly configured how I want it to work, but am running into a problem configuring my own copy of the SimpleMailWebEventProvider.
I've got it configured thusly:
<add name="CriticalEmail" bufferMode="Critical Notification"
type="System.Web.Management.SimpleMailWebEventProvider"
from="[email protected]"
to="[email protected]"
maxMessagesPerNotification="1"
priority="High"
buffer="false"
/>
and I rely on that provider for an event that's configured as follows:
<add name="Infrastructure Errors" eventName="Infrastructure Errors" provider="CriticalEmail" profile="Critical" />
All the other configuration is the default settings in the Framework folder, and I clear the rules list in my web-site-specific web.config before adding the rule above.
This all runs fine until I add the priority="High" attribute to the element, which according to the docs is supported in my version of the framework,. Whe I add that I get a configuration error on the site:
"The attribute 'priority' is unexpected in the configuration of the 'CriticalEmail' provider."
Any ideas why this might be?