Home > other >  Vb.net COM error accessing word retrieval class factory clsids for {000209 ff - 0000-0000 - C000-000
Vb.net COM error accessing word retrieval class factory clsids for {000209 ff - 0000-0000 - C000-000

Time:10-07

Everybody:
Written in vb.net desktop applications access to word file, suddenly go wrong today, according to
System. TypeInitializationException: "" WindowsApp1 YueWord" of type initializers cause abnormal, "
Internal abnormal
COMException: retrieve the COM class factory clsids for {000209 ff - 0000-0000 - C000-000000000046} component failure, the reason is that appear the following error: fail to run the 80080005 (exception from HRESULT: 0 x80080005 (CO_E_SERVER_EXEC_FAILURE)),
Reshipment office2019 cannot solve
Use online method, modified the office Licensing COM Server permissions also useless, excuse me what reason be
VB.net code
Imports Microsoft. Office. The Core
Imports Word=. Microsoft Office. Interop. Word

Dim make As YueWord=New YueWord
Make. OpenWord (" C: \ Users \ XHKJ \ Documents \ a. d. ocx ")

Public Class YueWord
Public Shared app As Word. Application=New Word. The Application
. Public Shared myWordDocument As Word Document
Public Shared myWordFont As Word. The Font
Public Shared myDocPro As DocPro

Public Sub OpenWord (filename As String) 'open a file
App. The Visible=False
MyWordDocument=app. The Documents. The Open (filename, Nothing, [ReadOnly] :=True)
End Sub

CodePudding user response:

Solve the WPS and office clashed, unload the WPS!
  • Related