[quoted text, click to view] On Nov 20, 12:07 am, NvrBst <nvr...@gmail.com> wrote:
> I'm having a problem with a "Member not found. (Exception from
> HRESULT: 0x80020003 DISP_E_MEMBERNOTFOUND))" error. The origional ASP
> is JScript, and the ASP.NET is JScript.NET.
>
> I'm creating an object with the line 'var oMyO =
> Server.CreateObject("Type.Class")'. I can successfuly call methods
> from that object (AKA a "ResetAll(DWORD ID)" by doing "oMyO.ResetAll =
> 1;"). But I can't seem to call a "Reset(DWORD x, DWORD y, DWORD ID)"
> method.
>
> In ASP-JScript it works by doing "oMyO.Reset(1, 20) = 1;", but by
> renaming the file to .aspx it give the above error. If I try
> "oMyO.Reset = 1" I get a "Number of parameters specified does not
> match the expected number." error so I assume it can see the method.
>
> I'm curious if this is the right syntax "oMyO.Reset(x, y) = ID;" for
> JScript.NET to call a COM object Reset(DWORD x, DWORD y, DWORD ID)?
> Or any other advice would be welcomed.
>
> NB
Was able to bypass the problem by overloading all the COM functions
with functions that only take a single string as input; had to marshal/
unmarshal the data inside the COM and JScript.NET.
Strange that calling the overloaded (Single Param set function) works
fine, but calling the origional three param set function doesn't work
in JScript.NET. All the Get functions worked fine no mater the number
of params as input. The COM object was made with VS6. All functions
worked in ASP, just not ASP.NET. Maybe a bug in RCW or something? I
a new to JScript.NET so maybe its something basic too.
Cheers