Application using Request Delegate Generator fails to start with KeyNotFoundException #48379
Closed
1 task done
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-rdg
NativeAOT
Needs: Author Feedback
The author of this issue needs to respond in order for us to continue investigating this issue.
Theme: cloud native
Is there an existing issue for this?
Describe the bug
Enabling the Request Delegate Generator on an existing application of mine is causing the application to fail to start due to a
KeyNotFoundException
being thrown.There appears to be an issue with something in the generated code which I think is for this endpoint.
Expected Behavior
The application runs the same as when the Request Delegate Generator is not enabled.
Steps To Reproduce
build.ps1
Exceptions (if any)
.NET Version
8.0.100-preview.4.23260.5
Anything else?
Curiously, this issue didn't happen for me locally, but only once I pushed it up to the repo and the GitHub Actions CI ran. Maybe it's got something to do with deterministic builds/CI in the source paths?
The text was updated successfully, but these errors were encountered: