简体   繁体   English

在 Azure 中的 .net 框架应用下托管 .net6 应用

[英]Host .net6 app under .net framework app in Azure

I have an AppService hosted in Azure under site\wwwroot, built on .net framework 4.7.我在 Azure 中的 site\wwwroot 下托管了一个基于 .net 框架 4.7 的 AppService。 I also have a new web app, built on .net6, which I deployed as a Virtual Application under the site\wwwroot\scheduler.我还有一个基于 .net6 的新 Web 应用程序,我将其部署为 site\wwwroot\scheduler 下的虚拟应用程序。

Now I need both of them to work altogether, so if I would go to mywebsite.azure.. URL, I would be able to see the old AppService, and mywebsite.azure.../scheduler - to see the new .net 6 app.现在我需要他们两个一起工作,所以如果我去 mywebsite.azure.. URL,我将能够看到旧的 AppService 和 mywebsite.azure.../scheduler - 看到新的 .net 6应用程序。

At the moment when I run the second URL, I get a generic 500 err and cannot identify, where is the issue.在我运行第二个 URL 的那一刻,我得到一个通用的 500 错误并且无法识别,问题出在哪里。

Is it overall possible to host .net 6 app under .net framework app in Azure?总体上是否可以在 Azure 中的 .net 框架应用程序下托管 .net 6 应用程序?

The Azure App service host has both the frameworks installed in which you can be verified by running the cmdlets from the console dotnet-info and reg query "HKLM\SOFTWARE\Microsoft\Net Framework Setup\NDP" . Azure App 服务主机安装了两个框架,您可以通过从控制台运行 cmdlet 来验证dotnet-inforeg query "HKLM\SOFTWARE\Microsoft\Net Framework Setup\NDP"

Is it overall possible to host .net 6 app under .net framework app in Azure?总体上是否可以在 Azure 中的 .net 框架应用程序下托管 .net 6 应用程序?

Theoretically, as a virtual application you should be able to run the .NET core app, make sure you do not have any conflicting web.config files.从理论上讲,作为一个虚拟应用程序,您应该能够运行 .NET 核心应用程序,请确保您没有任何冲突的web.config文件。

AzureAppServiceConsole

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM