I built a file cleanup provider by using health monitoring. but I got a problem. It is displayed "Cannot create an abstract class". I configure in web.config that
<healthMonitoring enabled="true" heartbeatInterval="5">
<providers>
开发者_开发问答 <add name="FileCleanupProvider" source="FileCleanupProvider" type="System.Web.Management.WebEventProvider"/>
</providers>
<eventMappings>
<add name="FileCleanupEvent" type="System.Web.Management.WebHeartbeatEvent" startEventCode="0" endEventCode="2147483647"/>
</eventMappings>
<rules>
<add name="CleanupEvent" eventName="FileCleanupEvent" provider="FileCleanupProvider"/>
</rules>
</healthMonitoring>
How can I do?
The WebEventProvider Class is an abstract class. You have to use/implement a class that inherits from this class to use it with Health Monitoring.
精彩评论