N
NvrBst
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.
Am I just calling the method syntaxtically wrong in ASP.NET/
JScript.NET (compared to ASP/JScript)?
Eventhough the COM object works perfectly in ASP/JScript, could there
be a bug in the COM for ASP.NET thats throwing the exception? (The
ASP.NET page just says the error occured on the line I'm trying to
call the method from, so I'm not too sure if the actual code inside
the method that is throwing the exception or ASP.NET page just can't
find the method...). I don't have access to the COM object source but
I can send in a bug report if I need too.
I'm stuck If anyone has any suggestions I'd be very greatful. I'd
be happy to provide more info if needed.
NB
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.
Am I just calling the method syntaxtically wrong in ASP.NET/
JScript.NET (compared to ASP/JScript)?
Eventhough the COM object works perfectly in ASP/JScript, could there
be a bug in the COM for ASP.NET thats throwing the exception? (The
ASP.NET page just says the error occured on the line I'm trying to
call the method from, so I'm not too sure if the actual code inside
the method that is throwing the exception or ASP.NET page just can't
find the method...). I don't have access to the COM object source but
I can send in a bug report if I need too.
I'm stuck If anyone has any suggestions I'd be very greatful. I'd
be happy to provide more info if needed.
NB