Hi there
I have a global.asa that Session_onStart
Check a DB connection and add some values.
The DB is under the root directory.
The starting file is an ASP page (index.asp).
After creating a subdomain that also has an ASP starting page it also runs the global.asa and can't find the database(because it is in a different root than this asp page.)
the error : Page(masters/index.asp)
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.
//global.asa, line 38
Global ASa script
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
Application("ActiveUsers" = 0
Application("variableUser" = ""
Application("variablePass" = ""
End Sub
Sub Session_OnStart
Dim MySQL
Dim rstemp
Dim Cnn
Dim TotalSessions
Dim TodaySessions
Dim DBDriver
Dim DBPath
Dim DBUser
Dim DBPass
Dim NameUsers, Login, Sailor, NameSailor
Dim variableUser, variablePass, Pais, Copa, Localidad, Fechaini, Fechafin, Website, Format
DBDriver = "Microsoft Access Driver (*.mdb)"
DBPath = Server.Mappath("/flor.mdb"
DBUser = ""
DBPass = ""
Set Cnn = Server.CreateObject("ADODB.Connection"
Cnn.Open "DRIVER={" & DBDriver & "}; DBQ=" & DBPath, DBUser, DBPass
etc...
How can I solve this issue? Many thanks
I have a global.asa that Session_onStart
Check a DB connection and add some values.
The DB is under the root directory.
The starting file is an ASP page (index.asp).
After creating a subdomain that also has an ASP starting page it also runs the global.asa and can't find the database(because it is in a different root than this asp page.)
the error : Page(masters/index.asp)
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.
//global.asa, line 38
Global ASa script
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
Application("ActiveUsers" = 0
Application("variableUser" = ""
Application("variablePass" = ""
End Sub
Sub Session_OnStart
Dim MySQL
Dim rstemp
Dim Cnn
Dim TotalSessions
Dim TodaySessions
Dim DBDriver
Dim DBPath
Dim DBUser
Dim DBPass
Dim NameUsers, Login, Sailor, NameSailor
Dim variableUser, variablePass, Pais, Copa, Localidad, Fechaini, Fechafin, Website, Format
DBDriver = "Microsoft Access Driver (*.mdb)"
DBPath = Server.Mappath("/flor.mdb"
DBUser = ""
DBPass = ""
Set Cnn = Server.CreateObject("ADODB.Connection"
Cnn.Open "DRIVER={" & DBDriver & "}; DBQ=" & DBPath, DBUser, DBPass
etc...
How can I solve this issue? Many thanks