Hi
I developed a piece of software on my old machine using IIS on Server 2003 (Virtual PC Platform) and have moved it to my new machine to play with. Unfortunately, MSVPC not installable on Vista so using IIS 7. Although I am able to display ASP pages, I am not able to process any information from the access databaes Im using in the back end.
Original message being returned was along these lines:
Problem occured whilst processing URL. Please contact System administrator
Followed advice in other threads on this forum and turned off friendly error messages, this was then returned:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Disk or
network error.
/quizCreate.asp, line
40
The code line it is refering to is of course the db connection opening, so here is the code and all lines before pertaining to it:
accessDb = "eBug.mdb"
myDSN = "DRIVER={Microsoft Access Driver (*.mdb)};"
myDSN = myDSN & "DBQ=" & server.mappath(accessDb)
Set dbConnection = Server.CreateObject("ADODB.Connection")
dbConnection.Open myDSN - this is line 40
Figured that it was because I was using an Access 2003 database and only have Office (including Access) 2007 on this machine. (is this assumption correct???)
Downloaded & installed the Access Database Connection stuff from the microsoft website, saved the original db as an Access 2007 DB and changed the connection settings to this:
accessDb = "eBug.acccdb"
myDSN ="Provider = Microsoft.ACE.OLEDB.12.0;"
myDSN = myDSN & "Data Source = " & Server.mappath(accessDb)
Set dbConnection = Server.CreateObject("ADODB.Connection")
dbConnection.Open myDSN
New error message now:
Microsoft Office Access Database Engine error
'80004005'
Unspecified error
/destroyDB.asp, line
31
Dont worry that its in a different file, all my files were using the same connection settings to the same database, I am only using this one as an example as it is the one open at this time.
Every user on the machine has full control to this folder, have even run the grant user access command prompts posted in other threads.
Still have no idea why I cannot access information in the database. If you need any more information please let me know and ill happily post it, really hope someone can help me out with this.
BTW - was I correct in having to upgrade the DB to Access 2007 one, would be really really handy if i didnt have to and could still use 2003 (even if i dont have office 2003 installed) as a lot of my old projects that use access as their DB are configured to access a 2003 DB using the first method shown here.
Cheers