PatK
2008-01-16 23:17:01 UTC
Hi!
I am a total noob at writing vbscript on IIS, so am looking for any help you
can provide.
I have IIS running on my own system (to learn) and have an access database
published to a virtual directory. I have no problem accessing "static" asp
type pages accessing http://localhost/mywebsite/test.asp (for example).
However, now I want to be able to open an access database. I am playing the
the "sample" code that came with IIS, and I am unable to even get that to
work For example (code snippet):
' Map authors database to physical path
filePath = Server.MapPath("authors.mdb")
' Create ADO Connection Component to connect with sample database
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath
I am running XP Pro, and have both Access 2003 and Access 2007 on my PC. I
have tried using both the connection string above (for .mdb formatted file)
as well as one for an Access 2007 (.accdb formatted) that I found on the web,
like:
PROVIDER=Microsoft.ACE.OLEDB.12.0;DATA SOURCE=author.accdb
but also does not work ( note that I save the DB in both .mdb and .accdb
format for each test, depending on the connect string I was planning to use)
No matter what I do, when I open the page with my browser, it craps out at
the line with oConn.Open statement. The Author.mdb file is in the "root" of
my website (altho I have tried moving it to fpdb, as frontpage likes better,
but no diff).
I get a 500.100 error with the following:
-----------------------------------------------------------------
Error Type:
Microsoft JET Database Engine (0x80004005)
Unspecified error
/asometrics/adddelete.asp, line 37
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705;
.NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)
Page:
GET /asometrics/adddelete.asp
Time:
Wednesday, January 16, 2008, 4:13:33 PM
-----------------------------------------------------------------
I am totally dead in the water, as I cannot get past the DB opening request.
HELP! I am going INSANE!
Patk
I am a total noob at writing vbscript on IIS, so am looking for any help you
can provide.
I have IIS running on my own system (to learn) and have an access database
published to a virtual directory. I have no problem accessing "static" asp
type pages accessing http://localhost/mywebsite/test.asp (for example).
However, now I want to be able to open an access database. I am playing the
the "sample" code that came with IIS, and I am unable to even get that to
work For example (code snippet):
' Map authors database to physical path
filePath = Server.MapPath("authors.mdb")
' Create ADO Connection Component to connect with sample database
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath
I am running XP Pro, and have both Access 2003 and Access 2007 on my PC. I
have tried using both the connection string above (for .mdb formatted file)
as well as one for an Access 2007 (.accdb formatted) that I found on the web,
like:
PROVIDER=Microsoft.ACE.OLEDB.12.0;DATA SOURCE=author.accdb
but also does not work ( note that I save the DB in both .mdb and .accdb
format for each test, depending on the connect string I was planning to use)
No matter what I do, when I open the page with my browser, it craps out at
the line with oConn.Open statement. The Author.mdb file is in the "root" of
my website (altho I have tried moving it to fpdb, as frontpage likes better,
but no diff).
I get a 500.100 error with the following:
-----------------------------------------------------------------
Error Type:
Microsoft JET Database Engine (0x80004005)
Unspecified error
/asometrics/adddelete.asp, line 37
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705;
.NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)
Page:
GET /asometrics/adddelete.asp
Time:
Wednesday, January 16, 2008, 4:13:33 PM
-----------------------------------------------------------------
I am totally dead in the water, as I cannot get past the DB opening request.
HELP! I am going INSANE!
Patk