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
With ASP.NET Core, you can build and run . NET applications not only on Windows but also macOS and Linux.
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
Definitely it will resolve your issue, Cheers !
Hope This Helps !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With