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 DLL Error

Status
Not open for further replies.

scripter73

Programmer
Apr 18, 2001
421
US
Hi,

I'm setting up my IIS (version 5.0) to run ASP scripts. My web server is serving ASP pages correctly because I did a test page, but when I run my main code, I keep getting the error "0x800401F9" - Error in the DLL. I'm just trying to read an Access database from an ODBC. Does anyone know what could be wrong? My code is below. It worked on my machine at work but at home, no go. I'm runnig Win 2K Server/Access 2K database.

Any help is appreciated.


<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>

<html>
<head>
<title>Read Agent Records</title>
<style>
BR.page { page-break-after: always}
</style>
</head>

<body><font face=&quot;Verdana, Arial, Sans-Serif&quot; color=&quot;black&quot; size=&quot;2&quot;>
<%
set conn = server.createobject(&quot;ADODB.Connection&quot;)
conn.open &quot;c:\inetpub\

Set RS = server.createobject(&quot;ADODB.Recordset&quot;)


conn.execute(&quot;SELECT * From Agents&quot;)

response.write &quot;<br>&quot;
rs.movefirst
do
response.write FormatDateTime(Date,1) & &quot;<br><br><br><br>&quot;

'response.write rs(&quot;agencynum&quot;) & &quot;<br>&quot;
response.write rs(&quot;agencyname&quot;) & &quot;<br>&quot;
response.write rs(&quot;agencyaddr&quot;) & &quot;<br>&quot;
'response.write rs(&quot;acity&quot;) & &quot;¸&quot; & &quot; &quot; & response.write rs(&quot;astate&quot;) & &quot; &quot; & response.write rs(&quot;azip&quot;) & &quot;<br>&quot;
response.write rs(&quot;acity&quot;)
response.write &quot;, &quot;
response.write rs(&quot;astate&quot;)
response.write &quot; &quot;
response.write rs(&quot;azip&quot;) & &quot;<br><br>&quot;
'response.write rs(&quot;aphone&quot;) & &quot;<br>&quot;
'response.write rs(&quot;altphone&quot;) & &quot;<br>&quot;
'response.write rs(&quot;aemail&quot;) & &quot;<br>&quot;
'response.write &quot;<br>&quot;
response.write &quot;Dear contact person, <br><br> Please read this information and let me know what you think.&quot;
response.write &quot;<br class=page>&quot;
rs.movenext

loop until rs.eof

rs.close
conn.close

%>
</font>

</body>
</html>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top