ASP.NET MVC application return 503 (Service Unavailable) error, Deployed in IIS with https protocol

74 Views Asked by At

In my case http://localhost was working, but https://localhost throws a HTTP 503 Internal server error.

  1. I am consuming an API using the http request
  2. If an API response is received within 15 seconds, it means it worked
  3. 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

enter image description here

Solution #3

enter image description here

If there is any other way to resolve this solution, please let me know.

1

There are 1 best solutions below

0
samwu On

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.