You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NET9 and NET10 applications can crash with a 0x80000003 exception on startup #122903
Posted a comment on the VS feedback item requesting more information.
Sergio Cascales Puerto please work with us on #122903 moving forward for this issue. I was not able to reproduce the issue and so for us to make forward progress, would need more information. Would it be possible to provide a small, reproducible test case that demonstrates the problem (along with step by step instructions on how to trigger the crash)? Also it was mentioned that the issue reproduces outside of the debugger with Control-F5 and Hot Reload enabled. Does the issue occur when using dotnet watch? If yes, are any edits performed and applied that results in the crash or simply starting the app causes the issue?
Several people on my team are experiencing this issue, while others are not, using the same project, the same Visual Studio version, and the same Windows version. This makes the problem particularly difficult to diagnose and reproduce reliably.
The most problematic aspect is that when the error occurs, Visual Studio/runtime closes or fails without providing any meaningful error message or detailed diagnostic information. There is no stack trace, no clear exception, and no actionable log output that would help us understand the root cause.
From a developer experience standpoint, it would be significantly better if, when this failure occurs, the runtime or tooling:
surfaced a detailed error message,
logged the underlying exception and stack trace, or
provided guidance on what component or condition triggered the failure.
Even if the issue is environment-specific or related to subtle machine differences, having explicit diagnostics instead of a silent shutdown would make troubleshooting far more feasible.
Hi @scascalespAV! We are sorry to hear about the issue. Few questions to help us narrow down potential root causes and options for next steps:
Does the issue reproduce for a helloworld app or in a reduced app (with minimal dependencies)?
Does the issue reliably reproduce on VS 2022 and VS 2026?
Does it also reproduce on .NET 8?
Does the issue reproduce with dotnet watch?
How quickly does the app crash - immediately at startup, after hot reload edits have been performed?
Visual Studio/runtime closes or fails without providing any meaningful error message or detailed diagnostic information.
Does this mean that VS crashes in addition to the target app?
logged the underlying exception and stack trace, or
For console apps, it is expected that unhandled managed exceptions should be written to the console, unless there is a native crash (such as an internal issue in the runtime) or an external process terminating the app that prevents this from occurring.
having explicit diagnostics instead of a silent shutdown would make troubleshooting far more feasible.
The lack of diagnostics is unexpected. We will suggest next steps after we have collected enough information on what the nature of the issue is and evaluated available options. Note this might require using an instrumented runtime build that collects extra diagnostics.
It will take me a long time to diagnose everything requested. It happens as soon as the app starts. I think it would be easier to provide details of the error, not just the code, to give us some clues.
Thx
While debugging with "Just My Code" disabled and "All Exceptions" enabled, the application crashed with error 0x80000003 inside the Azure App Configuration library (Microsoft.Extensions.Configuration.AzureAppConfiguration)
The standard builder.AddAzureAppConfiguration block was triggering this internal breakpoint exception during the fetch/refresh setup.
The Fix:
I replaced the inline configuration block with a custom extension method to bypass the library-specific crash during deep debugging.
Old Code (Crashing):
C#
// Throws 0x80000003 when "Just My Code" is OFF
builder.AddAzureAppConfiguration(options =>
{
options.Connect(connectionString).Select("*").ConfigureRefresh(...);
_refresher = options.GetRefresher();
});
Solution:
Swapped the implementation for a direct call via a custom wrapper:
C#
builder.AddAzurePortalAppConfigurationAv(
connectionStringAzure: azurePortalAppConfigurationCC,
configLabel: configLabel
);
Isolating the call into this method resolved the crash and allowed the configuration to load correctly even with all exception breaks active.
But I don't understand why the Microsoft.Extensions.Configuration.AzureAppConfiguration library in builder.AddAzureAppConfiguration critically closes the app when there's an error, even with a try block.... I think this could be improved.
But I don't understand why the Microsoft.Extensions.Configuration.AzureAppConfiguration library in builder.AddAzureAppConfiguration critically closes the app when there's an error, even with a try block.... I think this could be improved.
Hello @scascalespAV! I tried creating a small test case based off the description in the previous comment, but was unable to reproduce the problem. Since it seems you are able to reproduce the problem in your environment, would it be possible to collect COMPLUS logs as mentioned in #122903 (comment)?
Return the problem.... must deactivate 'hot reload', then works... Does this give any clues?
I created a new, very simple project that reproduces the problem. I sincerely believe it's something to do with the Visual Studio configuration or the framework. That's why I uninstalled and reinstalled everything, but it didn't fix it. I attach the sample
@scascalespAV Unfortunately I am still not able to reproduce the issue on my machine using the same project. Few questions:
Would it be possible to try reproducing using an instrumented build as mentioned in NET9 and NET10 applications can crash with a 0x80000003 exception on startup #122903 (comment)? Please let me know if you plan on collecting and sharing them. If preferred, please feel free to open a new VS feedback ticket item to upload them in a secure way, and share a link to the item here. This should help us understand at a much lower-level in the runtime what is occurring that leads to the int3 crash.
Just in case there is something environmentally different on the machine reproducing the issue - would you mind sharing the OS and CPU that is on the machine reproducing the issue? Do you have any 3rd party anti-virus software installed? It may be possible that some other software on the machine is interfering with the debugger.
Activity
tommcdon commentedon Jan 6, 2026
Posted a comment on the VS feedback item requesting more information.
scascalespAV commentedon Jan 7, 2026
Hello
Several people on my team are experiencing this issue, while others are not, using the same project, the same Visual Studio version, and the same Windows version. This makes the problem particularly difficult to diagnose and reproduce reliably.
The most problematic aspect is that when the error occurs, Visual Studio/runtime closes or fails without providing any meaningful error message or detailed diagnostic information. There is no stack trace, no clear exception, and no actionable log output that would help us understand the root cause.
From a developer experience standpoint, it would be significantly better if, when this failure occurs, the runtime or tooling:
surfaced a detailed error message,
logged the underlying exception and stack trace, or
provided guidance on what component or condition triggered the failure.
Even if the issue is environment-specific or related to subtle machine differences, having explicit diagnostics instead of a silent shutdown would make troubleshooting far more feasible.
Thanks
tommcdon commentedon Jan 8, 2026
Hi @scascalespAV! We are sorry to hear about the issue. Few questions to help us narrow down potential root causes and options for next steps:
Does this mean that VS crashes in addition to the target app?
For console apps, it is expected that unhandled managed exceptions should be written to the console, unless there is a native crash (such as an internal issue in the runtime) or an external process terminating the app that prevents this from occurring.
The lack of diagnostics is unexpected. We will suggest next steps after we have collected enough information on what the nature of the issue is and evaluated available options. Note this might require using an instrumented runtime build that collects extra diagnostics.
scascalespAV commentedon Jan 8, 2026
Hello
It will take me a long time to diagnose everything requested. It happens as soon as the app starts. I think it would be easier to provide details of the error, not just the code, to give us some clues.
Thx
tommcdon commentedon Jan 8, 2026
Hi @scascalespAV!
Thanks. We will take next steps once more information is available.
The error code
0x80000003isSTATUS_BREAKPOINT, which likely means that a breakpoint instruction is going unhandled from the target process.9 remaining items
tommcdon commentedon Mar 5, 2026
@scascalespAV since we are not able to reproduce the issue, would it be possible test with an instrumented build of the runtime with extra logging, then share the logs with us?
dotnet-policy-service commentedon Mar 5, 2026
This issue has been marked
needs-author-actionand may be missing some important information.scascalespAV commentedon Mar 13, 2026
I found! One week without crash
While debugging with "Just My Code" disabled and "All Exceptions" enabled, the application crashed with error 0x80000003 inside the Azure App Configuration library (Microsoft.Extensions.Configuration.AzureAppConfiguration)
The standard builder.AddAzureAppConfiguration block was triggering this internal breakpoint exception during the fetch/refresh setup.
The Fix:
I replaced the inline configuration block with a custom extension method to bypass the library-specific crash during deep debugging.
Old Code (Crashing):
C#
// Throws 0x80000003 when "Just My Code" is OFF
builder.AddAzureAppConfiguration(options =>
{
options.Connect(connectionString).Select("*").ConfigureRefresh(...);
_refresher = options.GetRefresher();
});
Solution:
Swapped the implementation for a direct call via a custom wrapper:
C#
builder.AddAzurePortalAppConfigurationAv(
connectionStringAzure: azurePortalAppConfigurationCC,
configLabel: configLabel
);
Isolating the call into this method resolved the crash and allowed the configuration to load correctly even with all exception breaks active.
But I don't understand why the Microsoft.Extensions.Configuration.AzureAppConfiguration library in builder.AddAzureAppConfiguration critically closes the app when there's an error, even with a try block.... I think this could be improved.
Thanks
tommcdon commentedon Mar 16, 2026
Hello @scascalespAV! I tried creating a small test case based off the description in the previous comment, but was unable to reproduce the problem. Since it seems you are able to reproduce the problem in your environment, would it be possible to collect COMPLUS logs as mentioned in #122903 (comment)?
dotnet-policy-service commentedon Mar 16, 2026
This issue has been marked
needs-author-actionand may be missing some important information.scascalespAV commentedon Mar 16, 2026
Hi!
Return the problem.... must deactivate 'hot reload', then works... Does this give any clues?
I created a new, very simple project that reproduces the problem. I sincerely believe it's something to do with the Visual Studio configuration or the framework. That's why I uninstalled and reinstalled everything, but it didn't fix it. I attach the sample
net10test.zip
tommcdon commentedon Mar 20, 2026
@scascalespAV Unfortunately I am still not able to reproduce the issue on my machine using the same project. Few questions:
scascalespAV commentedon Apr 27, 2026
Soled! Is antivirus problem... this one:
When deactivated the problem has gone
Thx
tommcdon commentedon Jul 28, 2026
Closing as this issue seemed to be caused by anti-virus software