开发者

Health Monitoring

开发者 https://www.devze.com 2023-02-10 03:31 出处:网络
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

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

精彩评论

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