PDF Reader Error: HRESULT E_FAIL has been returned from a call to a COM component

Last Reply 5 months ago By dharmendr

Posted 5 months ago

Hi All,

I created a DLL in VS2015 which is reading PDF. I am consuming this DLL via WebAPI.

But I am getting below error which creating a object to read PDF:

Error HRESULT E_FAIL has been returned from a call to a COM component.

Below the line of where I am getting error :

BaseReader reader = new TextReaderWrapper<FilterReader>(new FilterReader(fileName), chunkSize);

 

Posted 5 months ago

Hi Amit,

Please provide the complete error message.


Posted 5 months ago

This is the only error I am getting.

One more thing, I am running VS2015 on virtual maching. With user 1 it is working fine but for my user it is not working. Both are admin.

I am sure it is some permission issue but not able to find what exactly is.