This project has moved and is read-only. For the latest updates, please go here.

COMException in NetOffice.dll

Nov 3, 2015 at 1:25 PM

i'm trying to learn about using this API, but i'm having unknown exceptions that are not blocking my test application but always showing when running project :
 Dim WordApp As NetOffice.WordApi.Application = New NetOffice.WordApi.Application()
        WordApp.DisplayAlerts = NetOffice.WordApi.Enums.WdAlertLevel.wdAlertsNone
        WordApp.Visible = False

        Dim WordDoc As NetOffice.WordApi.Document = WordApp.Documents.Open("C:\Users\Abinn\Desktop\test.docx")

Exception levée : 'System.Runtime.InteropServices.COMException' dans NetOffice.dll

my code is too basic what is causing this