Partager via


Using Internal Events to Identify Errors

All of the system plug-ins included with Windows Media Services raise an event notice if they fail. Furthermore, a server or publishing point will also raise an event notice if it enters a critical error state as the result of the failure of an authentication or authorization plug-in. A critical error state is one in which the server or publishing point stops accepting new connections and stops authorizing requests made by existing connections. The following Internal Events indicate errors. You can write an event notification plug-in to retrieve them or use the WMS Active Script Event Handler plug-in.

  • WMS_EVENT_SERVER_CRITICAL_ERROR

  • WMS_EVENT_PUBLISHING_POINT_CRITICAL_ERROR

  • WMS_EVENT_PLUGIN_ERROR

If you are creating a custom plug-in, you can use the IWMSEventLog interface to log error information in the Windows Event Viewer. If your plug-in fails when the server calls InitializePlugin or EnablePlugin on the IWMSBasicPlugin interface, the server sends an event notice to the Windows Event Viewer. Therefore, it is recommended that your plug-in call the LogEvent method on the IWMSLogEvent interface only after your plug-in has been enabled.

See Also (General)

See Also (Visual Basic .NET)

See Also (C#)

See Also (C++)