Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. .net 6.0 web api how increment request timeout?

.net 6.0 web api how increment request timeout?

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdotnetjsonhelptutorial
2 Posts 2 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    ste22
    wrote on last edited by
    #1

    Hello, I can not understand how to set the timeout of a .net 6.0 web api application. In the .net 4.8 application I set the executionTimeout parameter of the httpRuntime section in the web.config. Is there anyone who can help me? Thank you.

    Richard DeemingR 1 Reply Last reply
    0
    • S ste22

      Hello, I can not understand how to set the timeout of a .net 6.0 web api application. In the .net 4.8 application I set the executionTimeout parameter of the httpRuntime section in the web.config. Is there anyone who can help me? Thank you.

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      You need to change the requestTimeout property on the aspNetCore element instead:

      <?xml version="1.0" encoding="utf-8"?>
      <configuration>
      <system.webServer>
      <aspNetCore requestTimeout="00:02:00" .../>
      </system.webServer>
      </configuration>


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups