ASP.NET ExecutionTimeout no effect on IIS-hosted WCF service

300 views Asked by At

I guessed that the ASP.NET ExecutionTimeout would have an effect on my IIS-hosted WCF service, however, it does not.

Is there some magic going on in WCF which disables the ExecutionTimeout?

2

There are 2 answers

0
D.R. On BEST ANSWER

I've found out that since .NET 3.0 SP1 WCF disables ASP.NET's ExecutionTimeout by setting the timeout to an infinite value. Therefore, only WCF-specific timeouts apply.

0
milope On

To my knowledge, ASP.NET and WCF are handled by different handlers. Being that ASP.NET and WCF are handled differently and the fact that the executionTimeout is within the child elements of system.web (ASP.NET) and not system.serviceModel (WCF) is probably why it has no effect on WCF calls. It problably has no effect on anything that is not handled by the ASP.NET handlers (e.g.: Static files).