Last post Mar 30, 2021 12:03 AM by Amani Al
Mar 18, 2021 11:21 PM|Amani Al|LINK
I'm using EC2 to deploy my ASP.net Core MVC web application on IIS. I've published a medium sized project and the browser display the following message "HTTP Error 503. The service is unavailable. " I've published another new project "Empty" with the same
setting as the previous project and the publishing succeeded i tried many solution such as :
2021-03-18 22:12:09 ***.**.**.** 3380 ***.**.**.** 80 HTTP/1.1 GET / - 503 4 AppOffline TestApplication
2021-03-18 20:57:27 ::1 GET / - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko - localhost 503 0 1115 4833 264 24
2021-03-18 20:57:27 ::1 GET /favicon.ico - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko - localhost 503 0 1115 4856 206 6
i didn't understand the error and I'm hoping for some help
Mar 19, 2021 08:56 AM|Jerry Cai|LINK
You should Search for the site you are trying to browse in the logs and the last but one field will give you reason. and you can also find the
evidence of repeated w3wp.exe crashes and Rapid-Fail Protection in Windows Events, in the System log with Source=WAS.
The 503 response from the IIS machine, Service Unavailable, is the result of repeated application crashes. Since the w3wp.exe worker process,
created by IIS to execute a web application, is crashing frequently, the respective IIS application pool is turned off. So you can check if the status
of your application pool is started.
Mar 19, 2021 02:42 PM|bruce (sqlwork.com)|LINK
Did you install aspnet core hosting module on your instance.
Mar 20, 2021 10:32 PM|Amani Al|LINK
Yes it is downloaded i got the 3.1.13 version
Mar 20, 2021 10:37 PM|Amani Al|LINK
i've provided the logs i found . but i didn't know where is the problem. BTW I've published the same web application previously on Azure and it up and running. Now I'm trying to republish using IIS is the previous publishing may cause this problem ? should
i disable or modify something from azure?
Mar 22, 2021 05:58 AM|Jerry Cai|LINK
Your publishing to azure has no effect on publishing to iis, you can also view the related error messages in the Event Viewer.
Mar 30, 2021 12:03 AM|Amani Al|LINK
My startup.cs file is invoking dbInitializer which requires a valid database connection i struggled finding the correct form for the connection string, this is the form if anyone needs it:
ps: my database is hosted by AWS
Thank you all