I'm trying to use Internet Explorer 9's JavaScript engine from my .NET library using COM interop. Whilst working fine in test code, it's failing when run within ASP.NET (on IIS).
My library is using IE's JavaScript engine to load the CoffeeScript compiler. So ideally I'd like to load the compiler once, then reuse the single IE script engine instance. I have a lock around calls to the script engine, but I think I'm still getting threading issues related to COM.
Is it possible for a COM object to be called from different .NET threads? (i.e. threads for different IIS web requests).
I'm a total COM newbie, so any advice, links, etc would be great.