AcroPDFLib.IAcroAXDocShim.LoadFile(String fileName), Error HRESULT E_FAIL has been returned from a call to a COM component.
I'm getting an exception occasionally when loading a PDF in C# code.
This is the information:
Source: Interop.AcroPDFLib
Message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Stack Trace: at AcroPDFLib.IAcroAXDocShim.LoadFile(String fileName)
at AxAcroPDFLib.AxAcroPDF.LoadFile(String fileName)
This is the line of code throwing the exception: m_axAcroPDF.LoadFile(m_fileName);
The file is located on the network, but when I view the files, they are opening fine.
Does anyone know what could be causing this error or workarounds so that I can re-attempt to load the PDF again automatically without the exception?
Thanks for the help in advance!
