I am developing a web application in ASP.NET MVC and the waiting times for GET requests are quite long both for static and dynamic content.
I am using Windows Azure Shared Websites for production and my localhost for development.
In both of them, nearly all of the GET requests has too long waiting times. For instance, it takes 1 second for waiting and 4 ms for receiving the content. And the job done in server side is nothing fancy, it just returns view with 4 inputs.
As i mention, this problem happens in both my localhost, and Azure. What can be the reason ? or is there a way to learn the actual operation that is causing this wait time ?
It looks like there’s some server side handler that executes for both static and dynamic content which is taking too long. I would recommending you getting glimpse (
Glimpse.Mvc3NuGet) which will allow you to see detailed information about the execution that takes place on the server. You will be able to see all methods being executed as well as the time it takes which might help you pinpointing the problem.As an alternative you could start narrowing down your application by removing functionality until you are able to isolate the problem.