troubleshooting Question

Problem connecting to Excel spreadsheet

Avatar of e_mam
e_mam asked on
Microsoft ExcelScripting LanguagesVB Script
10 Comments1 Solution333 ViewsLast Modified:
I am trying  to connect to an Excel spreadsheet called test.asp uploaded to the private folder of my website (hosted on a shared host). I am using the following code for this:

strconn = "DRIVER=Microsoft Excel Driver (*.xls);UID=admin;UserCommitSync=Yes;Threads=3;SafeTransactions=0;ReadOnly=1;PageTimeout=5;MaxScanRows=8;MaxBufferSize=2048;FIL=excel 8.0;DriverId=790;DefaultDir=" + Server.MapPath("..\..\private") + ";DBQ=" + Server.MapPath("..\..\private\test.xls") + ";"

but receive the following error message:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Excel Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x16e4 Thread 0x1070 DBC 0x51a4338c Excel'.

Can anyone help?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros