View Issue Details

IDProjectCategoryView StatusLast Update
0000028WoR ImagerGeneralpublic2018-12-25 15:35
Reporterender Assigned ToMario  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version0.2.4 
Summary0000028: Exception when selecting image
Description

Clicking […] results in an exception:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

** Exception Text **
System.Runtime.InteropServices.COMException (0x80040111): Creating an instance of the COM component with CLSID {DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7} 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.OpenFileDialog.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()
at WoR.MainWindow.<SearchImageBtn_Click>d41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b
6_0(Object state)

** Loaded Assemblies **
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///W:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

WoR
Assembly Version: 0.2.4.0
Win32 Version: 0.2.4.0
CodeBase: file:///X:/Stuff/RasPi/WoR/WoR.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///W:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///W:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///W:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

NLog
Assembly Version: 4.0.0.0
Win32 Version: 4.5.6.7874
CodeBase: file:///X:/Stuff/RasPi/WoR/NLog.DLL

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///W:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///W:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///W:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

NLog.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.2.3.167
CodeBase: file:///X:/Stuff/RasPi/WoR/NLog.Windows.Forms.DLL

System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///W:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

System.ServiceModel
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///W:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll

System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///W:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///W:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll

INIFileParser
Assembly Version: 2.5.2.0
Win32 Version: 2.5.2
CodeBase: file:///X:/Stuff/RasPi/WoR/INIFileParser.DLL

** JIT Debugging **
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

This seems to be a bug in .NET when themes aren't enabled (source: https://blog.lextudio.com/openfiledialog-crashes-with-comexception-0x80040111-f51e18d1ab89 ). I'm running a high contrast theme, and because wor.exe isn't marked as Windows 8-compatible in the manifest, Windows 10 emulates the classic theme for it, which triggers the problem. Workaround is simple - just add <compatibility> section to manifest and <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/> inside.

Steps To Reproduce

Select a high-contrast theme, run wor.exe, click […] on the Select image page.

Additional Information

Problem might only happen on 1809, since I noticed the same problem in a few other programs that worked fine before the upgrade.

TagsNo tags attached.

Activities

Mario

Mario

2018-12-25 15:34

administrator   ~0000052

I'm not able to reproduce this issue on Windows 10 version 1809 (build 18305.1000) .
Probably Microsoft has fixed it in the latest builds.

Issue History

Date Modified Username Field Change
2018-11-08 16:49 ender New Issue
2018-11-09 13:45 Mario Assigned To => Mario
2018-11-09 13:45 Mario Status new => assigned
2018-11-09 13:45 Mario Target Version => 1.0
2018-12-25 15:34 Mario Status assigned => closed
2018-12-25 15:34 Mario Resolution open => unable to reproduce
2018-12-25 15:34 Mario Note Added: 0000052
2018-12-25 15:35 Mario Target Version 1.0 =>