3

In previous version of ASP.NET we could use "Server.ScriptTimeout" in controllers t ospecify timeout. How can it be done now in ASP.NET Core?

For example, I know that my page will require around 3-4 minutes to be run. Is it possible to avoid timeouts?

3
  • How are you hosting you app? IIS? Commented Jun 21, 2017 at 12:36
  • yes, we host using IIS. Does it matter? Commented Jun 22, 2017 at 11:25
  • In my case it does. I have some action from my ASP.Net Core controller that are quite long, so I'm setting the timeout value in the web.config file that is consumed by IIS to let it know that it shouldn't timeout. See the answer here: stackoverflow.com/questions/43097433/… Would it do the job in your case? It's not setting the value on a particular action of a particular controller though. Commented Jun 22, 2017 at 11:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.