I am trying to pass a dictionary object to a COM object from an ASP page. Is this possible?
Printable View
I am trying to pass a dictionary object to a COM object from an ASP page. Is this possible?
Should be.
Is there a specific problem?
Try posting some code to look at...
The problem is that your COM object is in a different process (task) than IIS. You can set the COM object to run in-process, see the MSDN website for more details, I forget all the stuff you have to do with MTS; also, to make an in-process server that works with IIS, you have to have the COM component inside of an ActiveX EXE.
You can't pass an object to a DLL where the DLL says it will recieve it as ByRef. Only if the DLL says as variant will it work (i think).
My brother had this problem yesterday.
I've tried it as Variant when passing an array and it doesn't like that either.
mlewis - I thought a dll does run in process?
Here's what little brother found - Microsoft ByRef. Hope that helps.
Argh yes, DLLs inprocess, EXEs outofprocess; sorry I seem to have been Process Dyslexic for a second there :)
Anyway, you still have to jump through a lot of MTS/IIS hoops for it to work.
MSDN (see the link I posted above) has info on registering MTS components.