Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6610373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:49:58+00:00 2026-05-25T19:49:58+00:00

I have a ASP.NET MVC project running on my developer machine with windows 7

  • 0

I have a ASP.NET MVC project running on my developer machine with windows 7 ultimate and iis 7.5.

I do the following:

var requests = ["http://myserver.com/news/details/113834",
"http://myserver.com/tag/details?ids=113834&entityType=23",
"http://myserver.com/publish/details?ids=113834&entityType=23",
"http://myserver.com/generalproperty/details?ids=113834&entityType=23",
"http://myserver.com/category/details?ids=113834&entityType=23"];

var f = new Date().getTime();
$.each(requests, function(k,v) {
    $.ajax({
    url :v,
    async : true,
    type :'get',
    success : function(data) {
        console.log(new Date().getTime()  -f );
    }});
})

Then I get the following results(approx) 12, 521,1025,1550, 2067
async result http://martinhansen.no/hostedimages/async.PNG

If I switch the async to false I get : 14,32,49,58,68
sync result http://martinhansen.no/hostedimages/sync.PNG

Seems somewhere the requests are being queued up and after a while it responds only every 500 ish second.
I have made my controllers return blank text instead of the database call, so not the database.

Is there a limitation on IIS 7.5 for windows 7? A setting I can change?
I’m suspecting a max concurrent requests per user or something similar. And then it “punishes” you by responding every 500 ms only. So that people don’t use it as an actual server.

Likely? And is there a way to avoid it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:49:58+00:00Added an answer on May 25, 2026 at 7:49 pm

    It have nothing to do with IIS apperantly or IIS on windows 7, I also tried it on a test server and same results.

    It was because of limitations imposed by sessionstate, see the “Concurrent Requests and Session State” section at the bottom here: http://msdn.microsoft.com/en-us/library/ms178581.aspx

    However, if two concurrent requests are made for the same session (by using the same SessionID value), the first request gets exclusive access to the session information. The second request executes only after the first request is finished.

    But I still don’t understand why it don’t fire off the next request right after the the first one is seemingly finished. It seems very fake the 500 ms delay.

    I came over this question How to set the ASP.NET SessionState read-write LOCK time-out? that talks about the lock out time for the session state.

    System.Web.SessionState.SessionStateModule.LOCKED_ITEM_POLLING_INTERVAL = 500

    That’s the magic number that I’ve been searching my code and the interwebs for.. 500! I knew it had to be somewhere.

    Anyway, to fix this, I added the sessionstate attribute to my controllers with the option of read-only

    [SessionState(System.Web.SessionState.SessionStateBehavior.ReadOnly)]
    public class BaseController : Controller{} 
    

    Read more about it:

    http://afana.me/post/session-less-controllers-and-TempData-ASPNET-MVC.aspx

    http://weblogs.asp.net/imranbaloch/archive/2010/07/10/concurrent-requests-in-asp-net-mvc.aspx

    I still think something is wrong though, why don’t the previous request tell the system that it no longer needs a lock on the sessionstate so that the next request can complete?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a new ASP.NET MVC project (my first), and I had been running
I have a project on my local machine to learn NHibernate with ASP.NET MVC
I have ASP.Net MVC project. Plus wordpress blog under a subfolder /Blog. Now, when
I have an ASP.NET MVC project with a form. In the Action method that
I have an ASP.NET MVC project and I have a single action that accepts
I have an ASP.NET MVC project with xVal and data annotations and I need
We have an ASP.Net MVC project that will start with a single web server
I have an Asp.net MVC project that modestly uses jQuery scripts. My views also
I have a new asp.net mvc project and i am trying to figure out
In our ASP.NET MVC project we have a Strings.resx file and the accompanying autogenerated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.