• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Unable to open database in ASP

S

scislaghi

Guest
Hello all,

from 4 days i've upgraded to 7.6.1 version from 7.5.6.

Now I get always problem to open db with asp pages. This is the error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.

/common/include/tools.asp, line 19


Line 19 is:

Sub OpenDB (ByRef con, strDBName, strDBPath)
strPhysicalPath = Request.ServerVariables(4)

If Right(LCase(strDBName), 4) <> ".mdb" Then
strDBName = strDBName & ".mdb"
End If
' response.write strPhysicalPath & strDBName
' response.end
Set con = Server.CreateObject("ADODB.Connection")
' response.write "DRIVER=Microsoft Access Driver (*.mdb);UID=admin;UserCommitSync=Yes;Threads=3;SafeTransactions=0;PageTimeout=5;MaxScanRows=8;MaxBufferSize=2048;FIL=MS Access;DriverId=25;DefaultDir=" & strPhysicalPath & ";DBQ=" & strPhysicalPath & strDBName
con.Open "DRIVER=Microsoft Access Driver (*.mdb);UID=admin;UserCommitSync=Yes;Threads=3;SafeTransactions=0;PageTimeout=5;MaxScanRows=8;MaxBufferSize=2048;FIL=MS Access;DriverId=25;DefaultDir=" & strPhysicalPath & ";DBQ=" & strPhysicalPath & strDBName
End Sub



This is due a plesk upgrade?

Thanks
Stefano

__________________
Plesk 8 Debian 3.1
Plesk 7.6.1 W2K3
Dr.Web antivirus running

Visit: http://www.stefanocislaghi.it/
 
Check if IIS User has the proper permissions to write this file (via File Manager).
I've upgraded too and some of the permissions on my .mdb files were gone after upgrade.
 
I have the same problem after upgrade to 7.6.1.

Any ideas? Permissions seem correctly on folders and databases.

Thank you
 
This .asp script works on Plesk 7.5.1...

Dim objConnection
Set objConnection = Server.CreateObject("ADODB.Connection")
objConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/test.mdb")

...Where test.mdb is in the root folder and it has all the permissions it could need.
But on Plesk 7.6 it generates this error...

Microsoft JET Database Engine error '80004005'
Unspecified error

...until the psacln account is granted read/write permissions to this folder:

C:\Documents and Settings\NetworkService\Local Settings\Temp

...which is used for Jet's temporary files.

To see the 'NetworkService' folder you'll need to uncheck 'Hide protected operating system files'
in Windows Exlorer/Tools/Folder Options/View
 
I have the same error in 8.2 and I did what you said but it didnt work!

Any ideas anyone on this error on 8.2?
 
Back
Top