Error 0x800A0036

Value: -2146828234 | 0x800A0036 | 2148139062

What does it mean ?

CTL_E_BADFILEMODE  
DirectShow: The function attempted to perform an operation on a file that has an incompatible file mode. File modes are Append, Binary, Input, Output, or Random.
Value: 54 | 0x0036 | 0b0000000000110110

Where does it come from ?

FACILITY_CONTROL  
Used by OLE controls. You can find a complete list of the error codes in OLECTL.H - errors from: VB, VBScript, JScript, ADO, third party controls
Value: 10 | 0x00A | 0b00001010

Other Errors for FACILITY_CONTROL