i have an asp.net core app who works correctly on my computer but not on azure app service:
In one of my api, i return a dynamic type.
from the api runed on my computer i got (with .net core version : 1.0.1):
{"id":2,"color":"#3da1e8 ","logo":"","name":"...","companySecurities":[]}
from the api runed on azure app service i got (with .net core version : 1.1.0-preview1-001100-00):
{"id":2,"color":"#3da1e8 ","logo":"","name":"...","companySecurities":[]
You can see the the last bracket disapear on azure app service.
I want to know if there is a way to change the .net core version of azure app service to 1.0.1 .
Related
Today I deployed a new Azure Function App targeting .NET 7 Isolated as framework on Azure. To create the resource on Azure I used the wizard present on Visual Studio 2022, so I both created the new resource and deployed it using VS2022.
Going to view the Function App on Azure, I realized that the wizard created it by running it over the .NET 6 stack although it also offers me the Isolated .NET7 stack:
I was wondering if there was a specific technical reason and possibly if it is safe to switch to .NET6 from the .NET7 Isolated stack.
I have reproduced in my environment, and I have observed the same in my environment as below:
In my local Environment its .net 7 :
When I publish it to Azure its Changed to .net 6:
You can change there to .net 7 if any functionality doesn't work in . net 6 in portal:
I have also tried to create a .net 7 function app while creating portal:
I have observed that after creating its showing .net7
and when i deploy to this function app after deploying its showing .net6.
So, after deploying its changing to .net6. I would suggest if any functionality does not work, you can change to .net 7 manually.
I am trying to deploy a .NET 6 WebJob to an existing Azure App Service using Azure DevOps. I updated the App Service from ASP.NET V4.8 to the .NET 6 (LTS) version.
I installed the ASP.NET Core 6.0 (x64) Runtime extension
I also verified the .net version in the Azure CLI console:
Using the Azure App service deploy task in Azure DevOps, I get the following error message
The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v4.0'. This application requires 'v6.0'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_APPPOOL_VERSION_MISMATCH. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_APPPOOL_VERSION_MISMATCH.
Can anyone help me understand what I need to do to update the managedRuntimeVersion? My applicationhost.config file does have v4.0, but I don't have the rights, nor does it seem like the correct fix to modify this directly. Any ideas how I can update the managedRuntimeVersion, or what else I'm missing here?
I've deployed my code to an app service using Azure Devops CI release agent. Once I browse to the App service, it shows this error, stating that .net 5 isn't installed, and lists what is.
'The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.'
This is what I have selected in the app service configuration, as it looks to be the only .Net 5 option.
Based on my test, the Azure App Service could support the .Net 5.
From the error message, it is indeed show that .net 5 hasn't been installed in the app service.
I could reproduce this issue too.
But when I select the .Net5 (Early Access) in Configuration and Save it, it will update the web app settings. Then the website could run successfully.
From your screenshot, you already selected this option. You could try to restart the App service and check if it could work.
On the other hand, you could try to create a new App Service with .Net5 (Early Access). Then you could directly use the App service with .Net 5.
Here is a ticket with the detailed introduction, you could refer to it.
With the release of .NET Core 3.0, the latest version of visual studio offers the gRPC Service template to create this type of service.
Does anyone have idea what are my choice to host this kind of service (written in .Net Core 3.0) on the web?
Does Azure have a solution to this?
You can create a kubernetes cluster on Azure and deploy your application on it. Azure App Services doesn't support gRPC. If you want to learn how you can create your first service in gRPC follow this article:
gRPC service in .Net Core
Is it possible at this time (end of February, 2019) to deploy a .net core v3 beta backend to azure? I'd like to update some of my play stuff to .net core v3, but I only use it via azure I'm specifically looking at an azure web app that is currently running windows.
TIA.
You can install the runtime as an App Service extension. Look for "ASP.NET Core 3.0 (x86/x64) Runtime"