In our batch oriented service, we constantly loaded the stylesheet into a XslCompiledTransform object, compiled it and then transformed the data against it. Eating up memory rapidly.
So far the only resolution to this problem is to cache the XslCompiledTransform instance into a Dictionary class and re-use the instance.
We also noticed that
The resolution to these temp dll, is simple. Don't allow msxml:script blocks, if needed one should create your own dll and create an instance of it before transform() and pass it on as an object-argument.
Regards,
Edwin