How to fix Unhandled Exception: System.Runtime.InteropServices.COMException: The procedure number is out of range. (Exception from HRESULT: 0x800706D1) at at Acrobat.*

Recently I came across the following error when developing against Acrobat DC libraries: Unhandled Exception: System.Runtime.InteropServices.COMException: The procedure number is out of range. (Exception from HRESULT: 0x800706D1) at Acrobat.CAcroAVDoc.Open(String szFullPath,...

Recently I came across the following error when developing against Acrobat DC libraries:

*Unhandled Exception: System.Runtime.InteropServices.COMException: The procedure number is out of range. (Exception from HRESULT: 0x800706D1) at Acrobat.CAcroAVDoc.Open(String szFullPath, String szTempTitle) at *.Program.ConvertToPDF(String inputPath, String outputPath) at .Program.Main(String[] args) and this article describes the simplest way to fix the problem.

After numerous attempts to fix the problem and quite a lot of Googling, I've fixed the issue by running a repair option in the help menu of Acrobat DC installation:

Capture

Enjoy!