CodingWonders / CodingWonders/MicroWin

Unhandled exception has occurred in your application.

Open
#21 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
335
Forks
19
Avg merge
1m
Merged PRs (30d)
1

Description

Issue Checklist
  • I checked for duplicate issues.
  • I searched for existing discussions.
  • I checked for an existing pull request that addresses this issue.
Provide a clear and concise description of the issue.

Hello,

I'm trying to use MicroWin on Windows 10 Pro to create an image for Windows 11. I start the program as administrator.

Image

I've .NET 4.8 installed on the machine.

Image

Going through the process I get to the stage where I pick the location where I want to save the new ISO and then this appears:

Image

Here's what the MicroWin logs say:

[02/20/2026 10:55:09] [PID 10572] [GetFeatureList] ERROR: Failed to Initialize DISM
[02/20/2026 10:56:13] [PID 5476] [GetFeatureList] ERROR: Failed to Initialize DISM
[02/20/2026 11:47:17] [PID 18940] [GetFeatureList] ERROR: Failed to Initialize DISM
[02/20/2026 11:49:25] [PID 17608] [GetFeatureList] ERROR: Failed to Initialize DISM

I can start and use DISM on my machine just fine.

If anything else is needed to fix this error, please do tell and I will try to provide the information.

Thank you for the awesome tool!

Steps to reproduce the issue.
  1. Start MicroWin as Administrator and acknowledge the Alpha Release state:
Image
  1. Select Windows 11 ISO (downloaded from Microsoft):
  2. Select Windows version wanted:
Image
  1. Click on "Auto Setup (Automated"
Image
  1. Enter local account information and add it:
Image
  1. Click "Deploy Image":
Image
  1. Click Browse, and chose location to save the MicroWin.iso (an SSD with enough space, tried multiple disks to be sure):
Image
  1. When clicking save in the dialog for location the error occurs:
Image
Paste the full error output (if available).
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
   at MicroWin.functions.dism.OsFeatureDisabler.DisableFeatures()
   at MicroWin.functions.dism.OsFeatureDisabler.RunTask()
   at MicroWin.Page_Progress.<<RunDeployment>b__6_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at MicroWin.Page_Progress.<RunDeployment>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9310.0 built by: NET481REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
MicroWin
    Assembly Version: 0.1.0.0
    Win32 Version: 0.1.0.0
    CodeBase: file:///S:/Downloads/MicroWin/MicroWin.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9251.0 built by: NET481REL1LAST_C
    CodeBase: file:///C:/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.8.9320.0 built by: NET481REL1LAST_B
    CodeBase: file:///C:/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.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/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.8.9316.0 built by: NET481REL1LAST_C
    CodeBase: file:///C:/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.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.Dism
    Assembly Version: 1.0.0.0
    Win32 Version: 4.0.7.9543
    CodeBase: file:///S:/Downloads/MicroWin/Microsoft.Dism.DLL
----------------------------------------
System.Management
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.Net.Http
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.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.
Additional context.

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at MicroWin.functions.dism.OsFeatureDisabler.DisableFeatures(), where the stack trace shows a null source passed to LINQ Where, and trace the DISM initialization reported by GetFeatureList. Reproduce the Windows 11 deployment flow through the save dialog and verify that failed DISM initialization no longer causes an unhandled exception. No test file is mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.