Walbury’s Blog

Why I get XSL processor stack has overflowed only after I deploy

The XSL processor stack has overflowed – probable cause is infinite template recursion.

I kept on encountering this error after I deployed a web application using IIS. After a bit of trial and error I have come to the conclusion that there is an internal unchangeable limit for recursive xslt calls in IIS. The magic number: 500.

To be fair if I am calling a recursive function 500+ times this is probably not a good idea in the first case so I think I’ll take the hint and re-write so this isn’t an issue in future anyway.

Blog at WordPress.com.