How can I configure the maximum number of requests allowed in IIS Express?
I would like to change this to only allow a few requests to test what happens when it exceeds the limit.
IIS Express can be configured using applicationHost.config
file.
It is located at %userprofile%\my documents\IISexpress\config
Open this file in text editor. You will find <sites>
element in <system.applicationHost>
section. In that you will find a <site>
element for each site hosted on IIS express. Find the element corresponding to your site. Add a <limits>
element as shown below.
<sites>
<!-- Other sites -->
<site name="YourSiteName" id="YourSiteId">
<!-- Existing elements -->
<limits maxBandwidth="65536" maxConnections="1024" connectionTimeout="00:01:00" />
</site>
<!-- Remaining sites -->
</site>
You can set maxConnections
parameter to desired number of requests.
This should work though I have not tested it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With