Error 0x80040500

Value: -2147220224 | 0x80040500 | 2147747072

What does it mean ?

TF_E_LOCKED  
The context is already locked.
Value: 1280 | 0x0500 | 0b0000010100000000
UPNP_E_INVALID_DOCUMENT  
The service description contained an error.
Value: 1280 | 0x0500 | 0b0000010100000000

Where does it come from ?

FACILITY_ITF  
COM/OLE Interface management. FACILITY_ITF is designated for user-defined error codes returned from interface methods
Value: 4 | 0x004 | 0b00000100

Other Errors for FACILITY_ITF