Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP VB Script error Please help

Status
Not open for further replies.

MavrickStl

Programmer
Feb 20, 2001
71
US
I copied the msado15.dll file that calls the type library for constants
such as adLockOptimistic etc, into the read/directory on my websites
server.

Its saying that I can't call the library when i open the pages that have
recordset constants in them.

The message I get is"
Active Server Pages error 'ASP 0224'

Cannot load TypeLib

/database/Datastore1.asp, line 2

Cannot load Type Library specified in the METADATA tag. "

the syntax I;ve used to call the type library is:
<!-- METADATA TYPE=&quot;typelib&quot; FILE=&quot;/msado15.dll&quot; -->

This synax is held at the start of an asp file that I've put into my pages that call recordsets.

what am I doing wrong?
 

MavrickStl,

First, you have to copy that file to your SYSTEM32 directory, then use REGSRV32.EXE to register that DLL.

Second, search on Microsoft's Developer Web Site for a copy of ADOVBS.INC and down load it to your directory where your web pages are.

Then use the following:

<!-- #include file=&quot;adovbs.inc&quot; -->

That file contains all the code for adlockoptimistic, etc...


cheers;
fengshui1998
 
Thanks fengshui,

I tried to register typelib.dll using regsrv32.exe now I am getting this new error:

Load Library[&quot;typelib.dll&quot;] failed.
GetLastError returns 0x0000001f.

Any idea???

Thanks,

MavrickStl
 
Why u dont use Server.CreateObject(&quot;ADODB.Connection&quot;) and
Server.CreateObject(&quot;ADODB.Recordset&quot;) and see if it works after u register the dll. ________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top