[英]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.