FileConverter icon indicating copy to clipboard operation
FileConverter copied to clipboard

Error: "fail to open document with microsoft office (check if your licence/installation are valid)"

Open Hyp3r64 opened this issue 6 months ago • 7 comments

https://drive.google.com/drive/folders/1rVDGY9WXQcwc-OsedeBAfstfxnYjfJvo?usp=sharing

all the required files and screenshots are on my drive. follow the link ^^^

My windows and MS office software is activated, but File Converter is still showing this error. I tried re-installing, but didn't work.

Hyp3r64 avatar Feb 15 '24 07:02 Hyp3r64

Can you tell me the Word version Maybe I could help

itz-rj-here avatar Feb 15 '24 13:02 itz-rj-here

Version 2401 (Build 17231.20236)

Hyp3r64 avatar Feb 20 '24 15:02 Hyp3r64

Is your license genuine or fake license? like kmspico license?

itz-rj-here avatar Feb 21 '24 15:02 itz-rj-here

i am using a student account provided by my university. it was working just fine for the past year. I recently reinstalled windows, this issue appeared after that.

my windows isn't genuine though.

Hyp3r64 avatar Feb 22 '24 14:02 Hyp3r64

Hello, Thanks for your report (complete with all diagnostics and screenshots <3)

I put here the error that happened (that i've read in the diag)

System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
   at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
   at Microsoft.Office.Interop.Word.ApplicationClass.set_Visible(Boolean prop)
   at FileConverter.ConversionJobs.ConversionJob_Word.InitializeOfficeApplicationInstanceIfNecessary()
   at FileConverter.ConversionJobs.ConversionJob_Word.TryLoadDocumentIfNecessary()
Failed to initialize office application.
Fail: Fail to open document with Microsoft Office (check if your licence/installation are valid).

The interop Microsoft library seems to not find any version of Word. Keep in mind that File Converter is only compatible with Word >= 2013, but I assume that your version is more recent ^^.

You can try to reinstall word, maybe it will be detected better. I honnestly don't know what I can do since this code is not on FileConverter side.

Tichau avatar Mar 07 '24 12:03 Tichau