Skip to content

Unhandled exception has occurred in your application. #21

@StoyanBorisovBG

Description

@StoyanBorisovBG

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions