UPNP_E_EVENT_SUBSCRIPTION_FAILED

Hi all !!!

This project on developping upnp device will definitely make me crazy. I'm getting a UPNP_E_EVENT_SUBSCRIPTION_FAILED error whereas I'm using the microsoft sdk implementation. I don't understand anything.

If you know the microsoft platform sdk UPnP API, I'm using the implementation of DCO_DimmerDevice. The registration works fine but the service cannot be gotten because of the UPNP_E_EVENT_SUBSCRIPTION_FAILED error. The hosted service failed to subscribe to event source I think. I don't know the reason.

Do anyone know hpw to solve this, I am waiting for help.

Thanks a lot.



Answer this question

UPNP_E_EVENT_SUBSCRIPTION_FAILED

  • Farhan H Soomro

    You need to check your implementation of the Connection Point. It looks like the host is calling AdviseSink on your event interface and receives an error. If this is an ATL project, add

    #define _ATL_DEBUG_INTERFACES

    and

    #define _ATL_DEBUG_QI

    to see if perhaps some of the QueryInterface calls are failing. Also consider loading your DLL into some test app and calling AdviseSink on it



  • NoSTaBoNN

    The error occurs on the server side. Because when I implement the UPnPEventSource::Advise method, I queried an IUPnPEventSink instance as recommended by the SDK documentation.


  • r3n

    Where does the error occur In the service implementation On the Server side

  • UPNP_E_EVENT_SUBSCRIPTION_FAILED