Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

But when i accessing the hosted URL getting error - Service Unavailable

Not sure what is causing the issue to run application.

Here is log info which i get from kudu services.

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

like image 700
Jatin Parmar Avatar asked Jan 04 '18 13:01

Jatin Parmar


People also ask

Can ASP.NET Core run on Linux?

With ASP.NET Core, you can build and run . NET applications not only on Windows but also macOS and Linux.


1 Answers

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" it will take as command. so your startup file become like...

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

enter image description here

Definitely it will resolve your issue, Cheers !

Hope This Helps !

like image 142
Abhishek Gupta Avatar answered Sep 23 '22 21:09

Abhishek Gupta