In my case http://localhost was working, but https://localhost throws a HTTP 503 Internal server error.
- I am consuming an API using the http request
- If an API response is received within 15 seconds, it means it worked
- If you exceed 15 seconds, you will receive a 503 (Service Unavailable) error
I have implemented the following solutions, but they do not work.
Solution #1:
<httpRuntime executionTimeout="300" enable="true"
maxQueryStringLength="32768" maxUrlLength="65536"
maxRequestLength="4096" useFullyQualifiedRedirectUrl="false"
targetFramework="4.5" />
<sessionState mode="InProc" stateNetworkTimeout="40" timeout="2400" />
<sessionState mode="InProc" stateNetworkTimeout="30" />
Solution #2
Solution #3
If there is any other way to resolve this solution, please let me know.


503 error common cause is the application crash, in addition to using failed request tracking, you should set debugdiag rules to collect dump for application crash and analysis the dump for the crash reason.
About how to capturing them with dumps, you need to debug the cause using IIS Debug Diagnostics Tool, this tool will generate detail log file, which will help you to identify the problem.