简体   繁体   中英

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

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?

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 (eg: Static files).

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM