SYMPTOMS
When the default language is set to JScript for Active Server Pages (ASP)
connecting to a file-based database (for example, Access, Visual
FoxPro) returns an error such as the following:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access 97 Driver] Couldn't find file
'(unknown)'.
This error occurs only with connect strings that contain discrete or UNC
paths such as "c:\newdata\backup.mdb" or \\servername\sharename\backup.mdb,
respectively. For example, adding a data connection to a Visual InterDev
1.0 Web Project for the adventure works database from within Visual
InterDev 1.0 would create the following connection string in your
Global.asa:
"DSN=AdvWorks;DBQ=C:\InetPub\ASPSAMP\AdvWorks\AdvWorks.mdb;
DriverId=25;FIL=MS Access;MaxBufferSize=512;PageTimeout=5;");
When trying to open a text file, an error occurs such as the following:
Server object error 'ASP 0177 : 800a0034'
Server.CreateObject Failed
This error occurs when calling GetFile or OpenTextFile as in the following:
fl = fs.OpenTextFile("c:\\myfile.txt", 1, 0,0);
REFERENCES
For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
253604
Microsoft Access 97 database connectivity fails in Active Server Pages
253580 How to connect to a remote Access database from Active Server Pages