Share via


Event ID 346 — Event Notification

Applies To: Windows Server 2008

You can configure Event Notification plug-ins in Windows Media Services to receive notices of client and server internal events and then respond to changes in the state of the Windows Media server. For example, you can use a script to customize the way that the Windows Media server authorizes and responds to internal events or you can receive notification of internal Windows Media server events through Windows Management Instrumentation (WMI) and route them to an external application. To view all the possible internal events that the Windows Media server can report, see Windows Media Services SDK: Internal Events.

Event Details

Product: Windows Media Services
ID: 346
Source: WMServer
Version: 9.5
Symbolic Name: WMS_EVMSG_WMI_ENABLE_FAILED
Message: The WMS WMI Event Handler plug-in did not start.

Resolve

Start the WMS WMI Event Handler plug-in

To start the WMS WMI Event Handler plug-in:

  1. On the Windows Media server, open Windows Media Services. To open Windows Media Services, click Start, point to Administrative Tools, and then click Windows Media Services.
  2. In the console tree, click the Windows Media server or the publishing point for which you want to report WMI events.
  3. In the details pane, click the Properties tab.
  4. In Category, click Event notification.
  5. In Plug-in, right-click WMS WMI Event Handler, and then click Enable.

Verify

The steps to verify that an Event Notification plug-in is working correctly vary depending on the plug-in that you want to use.

For the WMS Active Script Event Handler plug-in:

  1. On the Windows Media server, open Windows Media Services. To open Windows Media Services, click Start, point to Administrative Tools, and then click Windows Media Services.
  2. In the console tree, click the Windows Media server or the publishing point for which you want to enable script responses to internal events.
  3. In the details pane, click the Properties tab.
  4. In Category, click Event Notification.
  5. In Plug-in, right-click WMS Active Script Event Handler, and then click Properties.
  6. In the WMS Active Script Event Handler Properties dialog box, in File name of script to run, enter the path of the script file.
  7. In Plug-in, right-click WMS Active Script Event Handler, and then click Enable.
  8. The WMS Active Script Event Handler plug-in will respond to event notices raised from the Windows Media server by calling the appropriate callback function in the script file that you created. Verify that the Windows Media server performs the action indicated by the callback function in the script file.

For the WMS WMI Event Handler plug-in:

  1. On the Windows Media server, open Windows Media Services. To open Windows Media Services, click Start, point to Administrative Tools, and then click Windows Media Services.
  2. In the console tree, click the Windows Media server or the publishing point for which you want to receive notification of internal events.
  3. In the details pane, click the Properties tab.
  4. In Category, click Event Notification.
  5. In Plug-in, right-click WMS WMI Event Handler, and then click Properties.
  6. In the WMS WMI Event Handler Properties dialog box, in Classes, select which event to report individually or by clicking Select All or Clear All. For more information about the WMI event classes that Windows Media Services reports, see WMS WMI Event Handler.
  7. In Plug-in, right-click WMS WMI Event Handler, and then click Enable.
  8. For each Windows Media Services internal event, the WMS WMI Event Handler plug-in will generate an event notification for other applications by using Windows Management Instrumentation (WMI). Verify that the application receives notifications for the selected events.

Event Notification

Streaming Media Services