When I publish my website to iis, timeout is not working.

exwsx 101 Reputation points
2020-11-29T15:16:46.56+00:00

Hi all,

As the title says, after I publish my .net mvc to iis, timeout is not working. I tested it locally and it works fine.

I've seen in my Web.config file that I've set executionTimeout, but it still doesn't work. what did I miss?

Then I also found that there are Idle Time-out and Connection Time-out in iis. What is the difference between them and does it affect my application?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,604 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sam Wu-MSFT 7,531 Reputation points Microsoft Vendor
    2020-11-30T06:06:10.97+00:00

    Hi @exwsx ,

    I think you should first understand the difference between executionTimeout, Idle Time-out and Connection Time-out.

    ExecutionTimeout attribute of httpRuntime element (in the web.config) can be used to change the request timeout duration for ASP.NET Application. executionTimeout value is specified in seconds. If your project is .net core mvc, then it should be the requestTimeout attribute in web.config.

    The IdleTimeout attribute specifies how long (in minutes) a worker process should run idle if no new requests are received and the worker process is not processing requests. After the allotted time passes, the worker process should request to be shut down by the World Wide Web Publishing Service (WWW Service).

    The ConnectionTimeout attribute specifies the amount of time (in seconds) that the server waits before disconnecting an inactive connection.

    Can you show me your web.config file? I need more information to help you solve the problem.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.