Skip to content

NET9 and NET10 applications can crash with a 0x80000003 exception on startup #122903

Closed

Description

@auott

Description

This was originally filed as a VS Feedback ticket here: https://developercommunity.visualstudio.com/t/Intermittent-crash-on-application-startu/11017289

Reproduction Steps

F5 or Ctrl+F5 a NET9 or NET10 application with Hot Reload enabled.

Expected behavior

Application runs.

Actual behavior

Application sometimes crashes with an exception (0x80000003) being thrown.

Regression?

No response

Known Workarounds

Disable hot reload.

Configuration

No response

Other information

No response

Activity

  1. added
    untriaged
    on Jan 5, 2026
  2. added
    needs-area-label
    on Jan 5, 2026
  3. added and removed
    needs-area-label
    on Jan 5, 2026
  4. self-assigned this
    on Jan 6, 2026
  5. added this to the 11.0.0 milestone on Jan 6, 2026
  6. removed
    untriaged
    on Jan 6, 2026
  7. tommcdon commented on Jan 6, 2026

    @tommcdon
    Member

    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?

  8. added
    needs-author-action
    on Jan 6, 2026
  9. scascalespAV commented on Jan 7, 2026

    @scascalespAV

    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

  10. removed
    needs-author-action
    on Jan 7, 2026
  11. tommcdon commented on Jan 8, 2026

    @tommcdon
    Member

    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:

    1. Does the issue reproduce for a helloworld app or in a reduced app (with minimal dependencies)?
    2. Does the issue reliably reproduce on VS 2022 and VS 2026?
    3. Does it also reproduce on .NET 8?
    4. Does the issue reproduce with dotnet watch?
    5. 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.

  12. scascalespAV commented on Jan 8, 2026

    @scascalespAV

    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

  13. tommcdon commented on Jan 8, 2026

    @tommcdon
    Member

    Hi @scascalespAV!

    It will take me a long time to diagnose everything requested.

    Thanks. We will take next steps once more information is available.

    I think it would be easier to provide details of the error, not just the code, to give us some clues.

    The error code 0x80000003 is STATUS_BREAKPOINT, which likely means that a breakpoint instruction is going unhandled from the target process.

  14. added
    needs-author-action
    on Jan 8, 2026
  15. 9 remaining items

  16. tommcdon commented on Mar 5, 2026

    @tommcdon
    Member

    @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?

  17. added
    needs-author-action
    on Mar 5, 2026
  18. dotnet-policy-service commented on Mar 5, 2026

    @dotnet-policy-service
    Contributor

    This issue has been marked needs-author-action and may be missing some important information.

  19. scascalespAV commented on Mar 13, 2026

    @scascalespAV

    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

  20. removed
    needs-author-action
    on Mar 13, 2026
  21. tommcdon commented on Mar 16, 2026

    @tommcdon
    Member

    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)?

  22. added
    needs-author-action
    on Mar 16, 2026
  23. dotnet-policy-service commented on Mar 16, 2026

    @dotnet-policy-service
    Contributor

    This issue has been marked needs-author-action and may be missing some important information.

  24. scascalespAV commented on Mar 16, 2026

    @scascalespAV

    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

    Image
  25. removed
    needs-author-action
    on Mar 19, 2026
  26. tommcdon commented on Mar 20, 2026

    @tommcdon
    Member

    @scascalespAV Unfortunately I am still not able to reproduce the issue on my machine using the same project. Few questions:

    1. 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.
    2. Would you mind disabling CET - https://learn.microsoft.com/dotnet/core/compatibility/interop/9.0/cet-support + hot reload enabled to determine if that works around the issue?
    3. 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.
  27. scascalespAV commented on Apr 27, 2026

    @scascalespAV

    Soled! Is antivirus problem... this one:

    Image

    When deactivated the problem has gone
    Thx

  28. tommcdon commented on Jul 28, 2026

    @tommcdon
    Member

    Closing as this issue seemed to be caused by anti-virus software

  29. locked and limited conversation to collaborators on Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions