I have a WinForms application that uses Stardocks WindowBlinds skin.
Since the latest Windows 10 update build 1809 I can't use the basic System.Windows.Forms.OpenFileDialog without it crashing on 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)
exception (see stack below).
This issue also affects SaveFileDialog.
I have tried everything I could think of such as:
Tried to use all the different flags.
Tried to exclude the open file dialog from the skin.
Different suggestions from other forums to disable high contrast and other stuff for issues that also get COM exception like mine.
The only thing that made it work was to use the AutoUpgradeEnabled
as false
and then the dialog gets a very old Windows 7 skin.
anyone else having the same issue?
The full stack:
Delegate method <PerformGetLicenseRequestCode>b__0 with args System.Object[] threw an exception Creating an instance of the COM component with CLSID {C0B4E2F3-BA21-4773-8DBA-
335EC946EB8B} from the IClassFactory failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)).
System.Runtime.InteropServices.COMException (0x80040111): Creating an instance of the COM component with CLSID {C0B4E2F3-BA21-4773-8DBA-335EC946EB8B} from the IClassFactory failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)).
at System.Windows.Forms.SaveFileDialog.CreateVistaDialog()
at System.Windows.Forms.FileDialog.RunDialogVista(IntPtr hWndOwner)
at System.Windows.Forms.FileDialog.RunDialog(IntPtr hWndOwner)
at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
at System.Windows.Forms.CommonDialog.ShowDialog()
Thanks,
Adar
Update: StarDocks fixed this issue. if anyone else having the same issue please contact them for the fix.
User contributions licensed under CC BY-SA 3.0