Description
A self-contained .NET 10 Windows desktop application fails immediately on startup on some Windows 10 x64 machines.
The affected application is v2rayN v7.22.x. Previous version v7.21.3 works correctly on the same systems.
Both the WPF build and the Avalonia UI build fail to start.
The application shows no window, no tray icon, no process, and no logs are generated.
Current build uses .NET SDK 10.0.108. The previous working build used .NET SDK 8.0.127.
Reproduction Steps
- Build a self-contained Windows desktop application with .NET SDK 10.0.108.
dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-x64 -p:SelfContained=true -p:EnableWindowsTargeting=true
-
Run the generated executable on Windows 10 Enterprise 22H2 x64.
-
The process exits immediately during startup.
-
No window, tray icon, process, or application logs are generated.
-
The same machines can run v7.21.3 built with .NET SDK 8.0.127 correctly.
Expected behavior
The application should start normally.
Actual behavior
The application exits immediately.
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name=".NET Runtime" />
<EventID Qualifiers="0">1023</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2026-05-21T18:13:14.1851167Z" />
<EventRecordID>13519</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>DESKTOP-6O03DCF</Computer>
<Security />
</System>
- <EventData>
<Data>Application: v2rayN.exe CoreCLR Version: 10.0.826.23019 .NET Version: 10.0.8 Description: The process was terminated due to an internal error in the .NET Runtime at IP 0x00007FF75DCEBF98 (0x00007FF75DC30000) with exit code 0x80131506.</Data>
</EventData>
</Event>
Regression?
No response
Known Workarounds
No response
Configuration
OS: Windows 10 Enterprise 22H2 x64
Architecture: x64
.NET SDK: 10.0.108
Previous working SDK: 8.0.127
Runtime: .NET 10.0.8
Publish mode: self-contained
RID: win-x64
UI frameworks affected:
Other information
DMP File: v2rayN.exe.3424.dmp - Transfer.it
Related downstream issue:
2dust/v2rayN#9373
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>100</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2026-05-21T18:13:14.3032960Z" />
<EventRecordID>13520</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>DESKTOP-6O03DCF</Computer>
<Security />
</System>
- <EventData>
<Data>v2rayN.exe</Data>
<Data>7.22.2.0</Data>
<Data>69f2ac0f</Data>
<Data>KERNELBASE.dll</Data>
<Data>10.0.19041.2913</Data>
<Data>a1c3e870</Data>
<Data>80131506</Data>
<Data>000000000012d862</Data>
<Data>521c</Data>
<Data>01dce94d7d834f27</Data>
<Data>C:\Users\ceshi\Downloads\v2rayN-windows-64\v2rayN.exe</Data>
<Data>C:\WINDOWS\System32\KERNELBASE.dll</Data>
<Data>8cc342d9-1417-4110-b6fb-7a06848e81ba</Data>
<Data />
<Data />
</EventData>
</Event>
Description
A self-contained .NET 10 Windows desktop application fails immediately on startup on some Windows 10 x64 machines.
The affected application is v2rayN v7.22.x. Previous version v7.21.3 works correctly on the same systems.
Both the WPF build and the Avalonia UI build fail to start.
The application shows no window, no tray icon, no process, and no logs are generated.
Current build uses .NET SDK 10.0.108. The previous working build used .NET SDK 8.0.127.
Reproduction Steps
Run the generated executable on Windows 10 Enterprise 22H2 x64.
The process exits immediately during startup.
No window, tray icon, process, or application logs are generated.
The same machines can run v7.21.3 built with .NET SDK 8.0.127 correctly.
Expected behavior
The application should start normally.
Actual behavior
The application exits immediately.
Regression?
No response
Known Workarounds
No response
Configuration
OS: Windows 10 Enterprise 22H2 x64
Architecture: x64
.NET SDK: 10.0.108
Previous working SDK: 8.0.127
Runtime: .NET 10.0.8
Publish mode: self-contained
RID: win-x64
UI frameworks affected:
Other information
DMP File: v2rayN.exe.3424.dmp - Transfer.it
Related downstream issue:
2dust/v2rayN#9373