Solved

Method '~' of object '~' failed

Posted on 2003-10-22
5
2,535 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
[X]
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
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

696 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