ASP.NET: Request.Form is slow!

I have very strange behavior with Request.Form .

Here are two IIS 7 servers running the same ASP.NET application. In the first case, everything is fine. But the second one has very low performance.

The profiler showed that this line:

context.Request.Form["id"]

      

more than 130 ms each time !

Profiler log:

0.60% get_Form - 4536 ms - 68 calls - System.Web.HttpRequest.get_Form ()

Server configurations are the same (?). The first server is running Vista, the second (slower) is running Windows Web Server 2008.

UPD: Both instances of the application work in integrated mode, the pool settings are the same.

Any ideas?

0


a source to share


2 answers


Fixed! Just changed the port of the application from 80 to 8080. I don't know the reason for this behavior.



0


a source


Is Request.Form ["id"] your only reference to Request.Form during this request? In this case, the time may be associated with the overhead of accessing the collection of forms. For fun, try adding another link to Request.Form to see if it also takes 130ms.



0


a source







All Articles