Unspecified Error

Posted on 2001-08-30
Last Modified: 2006-11-17
The first time I go to my default page, it comes up just fine, but on the second time (refresh), I get the following error:

Provider error '80004005'

Unspecified error

/schools/default.asp, line 6

The entire code from page is below.  Is there something I'm doing wrong?  This page works flawlessly on my development machine (Win2K Prof, FAT32 Drive), but I'm having lots of problems at my ISP (Win2000 Svr).


Dim Sponsors
Set Sponsors = Server.CreateObject("ADODB.Recordset")
Sponsors.ActiveConnection = "DSN=SchoolSponsor;"
Sponsors.Source = "SELECT Individual_Name, Organization_Name FROM Sponsor"
Sponsors.CursorType = 0
Sponsors.CursorLocation = 2
Sponsors.LockType = 3
Sponsors_numRows = 0
Dim Repeat1__numRows
Repeat1__numRows = 30
Dim Repeat1__index
Repeat1__index = 0
Sponsors_numRows = Sponsors_numRows + Repeat1__numRows

<title>Landscape Architects in Schools</title>
<base target="_self">
<body bgcolor="#000000" topmargin="0" text="#FFFFFF" link="#FFFF00" vlink="#FF00FF">
<table width="100%" border="0">
                  <a href=""><img src="../images/ccasla_newdesignc.gif" width="559" height="45" alt="Click here to return to CCASLA Home Page" border="0"></a>
<table width="100%" border="0" cellpadding="6">
            <td width="75%">
                  <table width="100%" border="0" align="top">
                              <td bgcolor="#9910a9">
                                    <font size="+2" color="#9910A9" face="Arial, Helvetica, sans-serif"><b><font color="#FFFFFF">Landscape
                                    Architects in Schools</font></b></font>
                  <p><font face="Arial, Helvetica, sans-serif"><img src="../images/LASchools.jpg" width="300" height="296" align="right"><b>U.S.
                        Department of Labor projects more than 21% job growth for landscape
                        architecture through the year 2006. Every year only 1,200 to 1,300
                        students graduate with a degree in landscape architecture. This number
                        has held steady in the last few years, despite the strong job market.
                  <h3><font color="#9910A9" face="Arial, Helvetica, sans-serif">How did
                        <i>you</i> find out about landscape architecture? </font></h3>
                  <p><font face="Arial, Helvetica, sans-serif" size="2">Maybe from seeing
                        a project?<br>
                  <p><font face="Arial, Helvetica, sans-serif" size="2">Or meeting a landcape
                  <p><font face="Arial, Helvetica, sans-serif" size="2">Or seeing images
                        in a magazine. </font>
                  <p><font face="Arial, Helvetica, sans-serif" size="2">Either way, you
                        probably stumbled into it. CCASLA's Landscape Architects in Schools
                        program expands and boosts this experience by interfacing high school
                        students with professionals.</font></p>
                  <p><font face="Arial, Helvetica, sans-serif" size="2">LA's in schools
                        program is a state-wide effort to link public and private, large and
                        small landscape architecture firms with Colorado high schools. Firms
                        'adopt' high schools, providing them materials and outreach to increase
                        awareness and visibility about the profession.</font></p>
                  <p><font face="Arial, Helvetica, sans-serif" size="2">It's a simple,
                        self-monitoring program. Firms choosing to participate agree to:</font></p>
                        <li><font face="Arial, Helvetica, sans-serif" size="2">Sponsor a subscription
                              to <i>Landscape Architecture</i> magazine. Meet with the school
                              librarian to familiarize the magazine to him or her. </font>
                        <li><font face="Arial, Helvetica, sans-serif" size="2">Meet with the
                              high school's guidance councilors about the profession. Supply
                              them with CCASLA's brochure for distribution to interested students.
                        <li><font face="Arial, Helvetica, sans-serif" size="2">Find out about
                              the school's career day, and participate in it. </font>
                        <li><font face="Arial, Helvetica, sans-serif" size="2">Offer tours
                              of your firm and personal insight to interested students. </font>
                  <p><font face="Arial, Helvetica, sans-serif" size="2">You will be contacted
                        twice a year ( fall &amp; spring ) so that you can be reminded of
                        your agreements. But that's all, the rest is <font color="#9910A9"><b><u>up</u>
                        <u>to</u> <u>you!</u></b></font></font></p>
                  <p><font face="Arial, Helvetica, sans-serif" size="2"><b>Sign Up Now!
                        Enter your email address below to sign up!</b></font></p>
                  <form name="email" method="post" action="SignUp.asp">
                        <font face="Arial, Helvetica, sans-serif" size="2">
                        <input type="text" name="emailAddress" size="20">
                        <input type="submit" name="Submit" value="Submit">
                        <input type="button" name="cancel" value="Cancel" onClick="history.back()">
                  <p><font face="Arial, Helvetica, sans-serif" size="2"><b><br>
                        Need more info?</b> <a href="">Contact
            <td bgcolor="#CCCCCC" width="25%" valign="top">
                  <p><font color="#008040"><b><font face="Arial, Helvetica, sans-serif" size="2">THANK
                        YOU</font></b><font face="Arial, Helvetica, sans-serif" size="2">
                        to the following firms, organizations, and individuals who have signed
                        up for the High School Adoption Program!</font></font></p>
                  <table width="100%" border="0" >
                        <tr >
                              <th width="44%">
                                    <div align="center"><font color="#008040" face="Arial, Helvetica, sans-serif" size="2">Organization</font></div>
                              <th width="56%">
                                    <div align="center"><font color="#008040" face="Arial, Helvetica, sans-serif" size="2">Individual</font></div>
While ((Repeat1__numRows <> 0) AND (NOT Sponsors.EOF))
                        <tr >
                              <td width="44%">
                                    <div align="center"><font color="#008040" face="Arial, Helvetica, sans-serif" size="2"><%=(Sponsors.Fields.Item("Organization_Name").Value)%></font></div>
                              <td width="56%">
                                    <div align="center"><font color="#008040" face="Arial, Helvetica, sans-serif" size="2"><%=(Sponsors.Fields.Item("Individual_Name").Value)%></font></div>
Question by:mraible
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
LVL 20

Accepted Solution

Silvers5 earned 50 total points
ID: 6443638
If Setting IUSR permissions on the mdb doesn't work then there aren't any permissions set in the tmp dir try this also..

Why does Access give me 'unspecified error' messages?     (262 requests)
Aside from the improper use of MEMO fields (see FAQ #9), this may be caused by the mode in which Access is opened. Unless otherwise specified, IIS opens Access databases with adModeUnknown... which has proven to cause random problems in certain configurations. You can overcome this by setting the mode to adModeReadWrite *before* opening the connection, such as:
    cst = "Driver={Microsoft Access Driver (*.mdb)};DBQ="
    cst = cst & server.mappath("/<pathtofile.mdb>")
    set conn = server.createobject("adodb.connection")
    conn.mode = 3 ' adModeReadWrite cst
(If you know you have Jet 4.0 installed, you can use the following slightly more efficient method.)
    cst = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    cst = cst & server.mappath("/<pathtofile.mdb>")
    set conn = server.createobject("adodb.connection")
    conn.mode = 3 ' adModeReadWrite cst

LVL 29

Expert Comment

by:Göran Andersson
ID: 6444337
Use a connection object (just like Silver said), and add a conn.Close at the end. Just to be sure that the connection closes. Access is a bit picky about open connections...
LVL 11

Expert Comment

ID: 6446023
Generally this is an ODBC problem with many many possible causes. The easiest solution is to use a DSN-less connection as silver5 has suggested. (Its actually more efficient as well).

So far as a connection.close is concerned well yes you should have one but it won't cause any problems cos often the connections aren't physically closed due to connection pooling. Under such circumstances it is only closing the connection between your prog and the driver not the database. The end of the program automatically destroys this object and does the close for you.

Author Comment

ID: 6446920
I actually got this fixed - it was the ISP's issue and a permissions problem.  It seemed that the *.mdb file had rwx permissions, but the directory it was in needed it as well.

Thanks for your assistance.  I'll give points to Silver5 in the hopes I can use this information in a future project.



Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor ( Top Charts is a view in which you can set seve…

636 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