Kestrel working, iisexpress is not

2020-11-24 Thread Tony Wright
Hi all, I have a problem with iisexpress at the moment. If I switch vs 2019 to the alternative build configuration, my web app works. If I switch to using iisexpress, the site runs in debug mode but the web page completely errors out. I've tried a repair with no luck. (Yay and extra bonus all

RE: Blazor server deploy to Azure

2020-11-24 Thread David Apelt
I had this last night as I upgraded an Azure project to .Net Core 5.0. The App Service refused to start with the same error message. (I recognise Greg is doing a Web App) I destroyed the App Service and created a new one and selected the framework “.Net 5 Early Access” as the “run time stack”.

RE: Blazor server deploy to Azure

2020-11-24 Thread Nick Randolph
To be fair, it’s not that they’ve really fallen behind – aren’t they running the LTS version of .NET Core now? It’s more that they weren’t there “on-launch” for .NET 5. It could be much worse – the AWS support for .NET Core has only just reached the LTS version. I suspect the reason for the

Re: Blazor server deploy to Azure

2020-11-24 Thread Greg Keogh
> > > Unfortunately you can’t always do this – for example because of the > hosting model for Azure Functions you have to use a framework version > that’s supported. This will change with the new hosting model (actually > it’s basically the same hosting model that’s used for all other frameworks >

RE: Blazor server deploy to Azure

2020-11-24 Thread Nick Randolph
I’m surprised that the self-contained option isn’t the default. One of the value props of .NET Core/.net 5 is that you can deploy without relying on any dependencies. When pushing to Azure Web App/Service I nearly always use the self-contained option – this gives me 100% control over which

Re: Blazor server deploy to Azure

2020-11-24 Thread Greg Keogh
> Have you got the right version of for net core installed on the server? > Since I'm deploying to an Azure Web App I thought that was out of my control -- *GK*

Re: Blazor server deploy to Azure

2020-11-24 Thread Tony Wright
Have you got the right version of for net core installed on the server? On Wed, 25 Nov 2020, 8:52 am Greg Keogh, wrote: > 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

Re: Blazor server deploy to Azure

2020-11-24 Thread Greg Keogh
> > > Have you tried deploying with “self-contained” set to true (dotnet > publish command - .NET Core CLI | Microsoft Docs > ). If > you’re using command line you just need to include the self-contained flag. > If you’re using

RE: Blazor server deploy to Azure

2020-11-24 Thread Nick Randolph
Have you tried deploying with “self-contained” set to true (dotnet publish command - .NET Core CLI | Microsoft Docs). If you’re using command line you just need to include the self-contained flag. If you’re using VS, it’s one

Blazor server deploy to Azure

2020-11-24 Thread Greg Keogh
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