StackOverflowException loading XsltCompiledTransform
Asked Answered
D

1

7

i have some big xslt crashing iis (StackOverflowException) when loading an XslCompiledTransform while the old (deprecated) XslTransform works fine. Is there some known issue with big templates? Strangely enough, the same XslCompiledTransform loads successfully in a win32 application.

Denture answered 25/11, 2008 at 10:28 Comment(0)
I
5

Ahh, you know the problem here is more due to IIS (I assume that it is a web app as you are trying it in a Win app too).

IIS (from Win2003 onwards) 'stupidly' only reserves a quarter of the normal stack space given to other programs. This is only 256KB, compared to 1MB.

To work around this issue, you can run this operation in a Thread. In the thread's constructor, you can specify a new stack reserve size. Try increasing the number till it works, without going over the top.

Ive answered 25/11, 2008 at 10:33 Comment(3)
thank you very much, it works in a separate thread with custom stack sizeDenture
Cool, glad to help, this bit me too not too long ago, and it was WEIRD!Ive
Awesome, totally solved my problem as well. Wish I could have those few hours of my life back!Nerta

© 2022 - 2024 — McMap. All rights reserved.