Remote debugging of ASP.NET (.NET Core 8) app under IIS 10 will not show source code on breakpoint
Historically, I've had no problems using the remote debugger on a Windows server for .NET Framework web services. I've now had to create a .NET Core 8 Web API using VS2022. I've published the service to a W2016 host and am hosting it under IIS (10.0.14393.0) using a new AppPool with the "No Managed Code" CLR version. I can successfully start up the remote debugger with admin privs on a port that is accessible to my developement machine. The development machine is running VS2022. When I've loaded the solution, I can attach to the remote debugger and the relevant process. However, if I set a break point on a line of C# code in a controller, for example, and call the related API exposed on the W2016 IIS port, VS2022 does not jump to the line where the break point is active - it shows a tabbed window with "The applicaiton is in break mode" and presents three options of "Show Diagnostic Tools", "Check for running Tasks" and "Continue execution". Meanwhile, I can see that in the "Modules" windows that the symbols for my application are loaded as expected.
I've tried regressing from the very latest VS2022 to the previous version (17.12.2) but this happens in both versions.
I've tried creating a really simple Web API from the template that create the Weather forecast API for .NET Core 8 and hosting that, but it behaves in the same way.
I've deployed the latest .NET 8 Server Hosting bundle (8.0.11) and restarted afterwards.
I don't know what to try next. This article seems to imply that this should all be possible but wonder whether this is at all possible or not, but would have thought to have found an article that would have said if that was not possible - https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging-aspnet-on-a-remote-iis-computer?view=vs-2022. The project was published using the "Debug" configuration; with the "net8.0" target framework and the "Portable" target runtime (but have also tried x64 too).
So am looking for any further suggestions on things to try, or to be told if this is simply not possible,