Good morning Anamika,
In regards to your HRESULT issue, do either of these solutions resolve the issue?