-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ANCM In process: Managed exceptions before full initialization are too hard to look at #5153
Comments
|
That doesn’t solve all of the issues with the experience but it’s a start 😬. |
@davidfowl core-setup issue is in "Future" milestone. |
It's going to be in 3.0 |
Started exploring here: #8518 |
It's not blocked on that, it's blocked on implementing setting runtime options by hosting process dotnet/core-setup#5486 |
Specifically it is blocked on setting the startup hook. There should be an environment variable though that we can set for now to verify. |
This is done. #9520 is the only follow up issue I can think of. (I'm still going to do verification in the E2E). |
Epic #8833
While testing out the generic host with the new ValidateOnBuild feature (which fails to build the host if there's an issue with services), I noticed that its really hard (even in development) to just get access to the managed exception when using ANCM in proc. If there's an exception in Program.cs, this is what you see:
Then the event log shows this:
This is a pretty bad experience for looking at a simple managed exception. Here are the steps we advertise to troubleshoot:
We need to improve this. Here are some things I can think of:
We would call this delegate first (it would exist in the IIS integration assembly) so that before we called into main, we'd have logic in managed code to hook up the unhandled exception event handler.
The text was updated successfully, but these errors were encountered: