[Reopen] Fix ANCM installer on ARM64 #59483
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Revised ASP.NET Core module installers for Windows ARM64
LoadLibraryEx
withLOAD_LIBRARY_SEARCH_DLL_LOAD_DIR
flag set, so that the pure forwarder works as desired.Fixes #47115.
Description
About the change in
HandlerResolver.cpp
To implement all proposed installer changes in #47115, then in the out-of-process folder three files present,
aspnetcorev2_outofprocess.dll
, an ARM64X pure forwarder.aspnetcorev2_outofprocess_arm64.dll
, the pure ARM64 handler.aspnetcorev2_outofprocess_x64.dll
, the x64 handler.Before this change,
LoadLibrary
only loads the pure forwarder, but then scans the default folders (the dll folder is not included) to load the actual handler which obviously fails.After this change,
LoadLibraryEx
can pick up the correct handler as the dll folder is added in the search folder list.About files in
Forwarders
folderSource code for the two ARM64X pure forwarders.
About changes in
ANCMV2
folderBefore this change, only ARM64 web apps can run on IIS.
After this change, the new file structure enables ARM64/x64/x86 side by side execution on IIS.
About changes in
ANCMIISEXpressV2
folderBefore this change, only ARM64 web apps can run on IIS Express.
After this change, the new file structure enables ARM64/x64/x86 side by side execution on IIS Express.