Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ASP / Database Access / October 2007



Tip: Looking for answers? Try searching our database.

Provider error '80004005'  with Excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe - 03 Oct 2007 13:00 GMT
Hi,

I've a couple of asp web pages that pull data from an Excel 2003 spreadsheet
and this works absolutely fine.  However, should I refresh the web page
within 60 seconds or so I get the following error

Provider error '80004005'
Unspecified error

Let a couple of minutes pass before I refresh and the asp can open the Excel
spreadsheet again.

Can anyone help shed light on why this is happening and how to fix it.
Below is my code for opening and closing the Excel file.

Thanks,
Joe

-----------------------------------------------------------------------------------------------------

strConnection = "DBQ=" & Server.MapPath("BUCKETS.xls") & ";
DRIVER={Microsoft Excel Driver (*.xls)};"

Set cn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
cn.open strConnection

rs.close
Set rs = nothing
cn.close
Set cn = nothing
Joe - 03 Oct 2007 13:16 GMT
Found the answer at the following KB.

http://support.microsoft.com/kb/q195951/

Thanks,
Joe

> Hi,
>
[quoted text clipped - 27 lines]
> cn.close
> Set cn = nothing
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.