Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Method '~' of object '~' failed

Posted on 2003-10-22
5
2,533 Views
Last Modified: 2012-05-04
Hi,

I've created a DLL that uses MSWINSCK.OCX to Query a server. Using the DLL in a test program in VB, no error occurs.
If I'm calling the DLL from my ASP application, sometimes it works, sometimes I get the error:

DLLName error '800a0578'

Method '~' of object '~' failed

/page.asp, line 20

I've updated MDAC (twice) and have used the MDAC version check utility. This utility gives me a list of drivers and versions, and no errors.

The test program in VB runs on the same machine as IIS.

Does anyone know what to do? Anything I have to look for in the MDAC version check utility? Or is something else going on here?
0
Comment
Question by:DelTreme
5 Comments
 
LVL 3

Author Comment

by:DelTreme
ID: 9597508
By the way, the MDAC version is 2.8, running on Win2000 Adv. Server.
0
 
LVL 4

Assisted Solution

by:JNSTAUB
JNSTAUB earned 93 total points
ID: 9597603
are you sure that you dll is multithreads. for asp many object may be created one per session .I don't remenber what is necessary as model appartment or some thing else but you should find easely doc on this topic at msdn.
0
 
LVL 26

Assisted Solution

by:EDDYKT
EDDYKT earned 93 total points
ID: 9597909
Make sure you use apartment threaded, check on unatended execution and retained in meory

on project property

Do you know which line cause an error?
0
 
LVL 5

Accepted Solution

by:
jayeshshah earned 94 total points
ID: 9597916
write the below line on the topof your ASP page.

<!-- METADATA TYPE="typelib" FILE="c:\program files\common files\system\ado\msado15.dll"-->

the filename might change to that existing on your server.


K'Regards

Jayesh
0
 
LVL 3

Author Comment

by:DelTreme
ID: 9605450
Maybe I'm being haunted or something -

3 weeks ago I installed the latest version of MDAC. The installation completed and I rebooted the server. After that, the problem kept coming back. I repeated the reinstall of MDAC and the reboot - no changes in the situation.

Before asking this question, I downloaded the MDAC versions checker, as it's known as a 'final solution' to help fix the problem. But the tool gives me information that isn't usefull for me (more numbers that words :s). Also, there's no "Fix" button or something to help this poor noob I am.

I thought it might be smart to tell you guys/gals what version of MDAC I'm running, so I checked the same site I downloaded MDAC from, 3 weeks ago. It says "MDAC 2.8 Now Available for Download" dated August 7.

Yet after posting this question, I installed MDAC 2.8 and the problem *vanished*. Was MDAC 2.8 released at August 7, but posted on the site less than 3 weeks ago? I don't know, but the problem is gone.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question