473,387 Members | 1,290 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ASP > ASP.NET Migration (DISP_E_MEMBERNOTFOUND Error)

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
Nov 20 '07 #1
1 3198
On Nov 20, 12:15 am, NvrBst <nvr...@gmail.comwrote:
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
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
NB
Nov 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Keith R | last post by:
I have VB6, and eventually plan to upgrade to dotnet. I will soon start writing an application that will be mostly local (client?) but will interface with a server a few times, to authenticate...
28
by: prunoki | last post by:
Hello, I am an SQL server newbie. Our company has a massive application written in PL/SQL. I need to port parts of it to SQL Server. - Which SQL server version should I choose, to have a...
1
by: rob | last post by:
Dear All, I have a very small test project to convert asp to asp.net using the Microsoft/Artisan ASP to ASP.NET Migration Assistant...
1
by: jens | last post by:
Hello NG, This question regards a migration of a vb6 application to .NET Since 2 years we develop and extend an administration/reporting application based on VB6, Crystal Reports 10 and MS...
7
by: Michel Esber | last post by:
Hello, Linux DB2 V7 FP13 kernel 2.4. Parts of our application login run on C++ procedures that are working fine. I have taken an offline backup and restored it to a Linux V8 kernel 2.6 FP 14...
1
by: Bonggoy Cruz | last post by:
We have a fairly big size ASP.NET web application that was written VB.NET. We are in the process converting the web project. We used the migration wizard included in VS 2005. I followed step by...
0
by: SenthilVel | last post by:
Hi All I have problems when i convert my 1.1 ASPX web application to 2.0 using VS2005. My web application gets compiled fine in CLR1.1 and there is no problem with that. When i do the...
5
by: FFMG | last post by:
Hi, Seen that support for PHP4 will be dropped at the end of the year I was thinking that maybe now might be a good time to start moving things. Is there a tutorial as to what I need to look...
1
by: QuickBooksDev | last post by:
I converted a large VB6 ap to VB.NET 2005. I have found that a Late Binding works in VB6 but not in VB. NET when a Function is used. Ex. Select Case Type case 1 LineObj = Type1 case 2
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.