简体   繁体   English

ASP.NET Core应用到Azure应用服务上的Linux

[英]ASP.NET Core app to Linux on Azure App Service

I'm deploying the Linux based ASP.NET core app using Azure Web App, exactly same thing follow which mention in this blog post . 我正在使用Azure Web App部署基于Linux的ASP.NET核心应用程序,与完全相同。

But when i accessing the hosted URL getting error - Service Unavailable 但是当我访问托管URL时出现错误- 服务不可用

Not sure what is causing the issue to run application. 不知道是什么原因导致该问题运行应用程序。

Here is log info which i get from kudu services. 这是我从kudu服务获得的日志信息。

2018-01-04 12:20:05.716 ERROR - Container dotnetlinuxapp_1 for site dotnetlinuxapp has exited, failing site start 2018-01-04 12:20:18.304 INFO - Starting container for site 2018-01-04 12:20:18.305 INFO - docker run -d -p 24936:8080 --name dotnetlinuxapp_1 -e WEBSITE_SITE_NAME=DotNetLinuxApp -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_INSTANCE_ID=fdcd5b5339be6bb353a84764edb2155ae6bb8d934d2d889b883ef65bcb729a44 -e HTTP_LOGGING_ENABLED=1 appsvc/dotnetcore:1.1.2_1709181723 /home/site/wwwroot/Meetup.Web.dll 2018-01-04 12:20:19.646 ERROR - Container dotnetlinuxapp_1 for site dotnetlinuxapp has exited, failing site start 2018-01-04 12:20:05.716错误-站点dotnetlinuxapp的容器dotnetlinuxapp_1已退出,站点启动失败2018-01-04 12:20:18.304 INFO-启动站点2018-01-04 12:20:18.305 INFO -docker run -d -p 24936:8080 --name dotnetlinuxapp_1 -e WEBSITE_SITE_NAME = DotNetLinuxApp -e WEBSITE_AUTH_ENABLED = False -e WEBSITE_ROLE_INSTANCE_ID = 0 -e WEBSITE_INSTANCE_ID = fdcd5b5339be6bb353a84764edb2dinga1d1d1d1d1e1e1e1e1e1e1e1e1e1e1e8e8e8e8e8b0bdb1e1e8e8abdb1e8e8e8e0b0b0b1e8e0b0b1e8e0b0b人/wwwroot/Meetup.Web.dll 2018-01-04 12:20:19.646错误-网站dotnetlinuxapp的容器dotnetlinuxapp_1已退出,网站启动失败

I have reviewed your issue and found that you are referring blog have not latest information and cause of that you are facing this issue. 我已经审查了您的问题,发现您所引用的博客尚无最新信息,并且是您面临此问题的原因。

Please append "dotnet " in starting of text which you are entering into startup file. 请在您要输入启动文件的文本开头添加“ dotnet”。 "dotnet" it will take as command. “ dotnet”将作为命令。 so your startup file become like... 这样您的启动文件就像...

dotnet /home/site/wwwroot/{yourDLLName}.dll dotnet /home/site/wwwroot/{yourDLLName}.dll

在此处输入图片说明

Definitely it will resolve your issue, Cheers ! 肯定会解决您的问题,干杯!

Hope This Helps ! 希望这可以帮助 !

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

相关问题 ASP.NET Core 对 Azure 应用服务的 HTTP 请求缓慢 - ASP.NET Core slow HTTP requests to Azure App Service ASP.net 核心 docker https on Azure 应用服务容器 - ASP.net core docker https on Azure App Service Containers Azure Service Fabric中的ASP.NET Core应用程序中的WebpackDevMiddleware - WebpackDevMiddleware in ASP.NET Core app in Azure Service Fabric 将ASP.NET Core部署到Azure Web App服务错误 - Deploy ASP.NET Core to Azure Web App Service Error Azure中的ASP.NET MVC Core应用 - ASP.NET MVC Core app in Azure 在 Azure 应用服务中的 ASP.NET Core 3.1 应用上调用 TryUpdateModelAsync 超时 - Timeout calling TryUpdateModelAsync on ASP.NET Core 3.1 app in Azure App Service 如何为 ASP.NET Core 应用程序配置 Azure 应用服务日志记录提供程序? - How to configure Azure App Service logging provider for an ASP.NET Core app? 部署多项目 ASP.NET 核心 web 应用程序到 Azure 应用程序服务使用 ZE1ADBCBB92C622D0B3E Actions61 - Deploying multi-project ASP.NET Core web app to Azure App Service using Github Actions 如何将 Blazor Web 程序集与 ASP.NET 核心托管和身份验证应用程序发布到 ZCF04A02E37B774FC3917A 服务? - How to publish Blazor Web assembly with ASP.NET core hosting and identity auth app to azure App Service? Azure 应用服务上的 ASP.NET Core MVC Azure AD 身份验证循环 - ASP.NET Core MVC Azure AD Authentication Loop on Azure App Service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM