Have you tried deploying with “self-contained” set to true (dotnet publish command - .NET Core CLI | Microsoft Docs<https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish>). If you’re using command line you just need to include the self-contained flag. If you’re using VS, it’s one of the options when you go in and edit the publishing options.
Nick Randolph | Built to Roam Pty Ltd | Co-Founder, Technical Director | +61 412 413 425 | 1300 613 140 | www.builttoroam.com<https://www.builttoroam.com/> The information contained in this email is confidential. If you are not the intended recipient, you may not disclose or use the information in this email in any way. Built to Roam Pty Ltd does not guarantee the integrity of any emails or attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Built to Roam Pty Ltd. From: ozdotnet-boun...@ozdotnet.com <ozdotnet-boun...@ozdotnet.com> On Behalf Of Greg Keogh Sent: Wednesday, 25 November 2020 8:52 AM To: ozDotNet <ozdotnet@ozdotnet.com> Subject: Blazor server deploy to Azure Folks, I created a simple Blazor Server Core 5 app using the Visual Studio 2019 template, and it runs nicely in local debugging. When I deploy it to Azure I get HTTP Error 500.31 - ANCM Failed to Find Native Dependencies Common solutions to this issue: The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found. I've spent a couple of solid hours experimenting and searching for a fix without any hope. Which leads me to ask... Is this sort of project supposed to deploy to Azure and run? Maybe there's some trick I don't know. Maybe I'm simply pissing into the wind trying to do the impossible. These days, who can tell what's supposed to work or not?! Greg K