开发者

Health Monitoring

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜