473,383 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

ASP Tryng to Modify a Different Access DB than Specified in the Connection String

I am using ASP classic on a local machine running IIS7. I am also using an Access 2007 DB file.

My connection string is as follows:

set Conn=server.createobject("adodb.connection")
Conn.Open "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\TM6293\Documents\tta.accdb;Persist Security Info=False;"

I opened up the permissions on that particular file, and its parent folder.

When my code tries to send an SQL statement to the Conn objet, I get the following error:

Microsoft Office Access Database Engine error '80004005'
Could not find file 'c:\windows\system32\inetsrv\ginstaff.mdb'.

Where is it pulling this file information? It is nowhere in my code, and I can't find reference to it in the IIS control panel, or the ODBC control panel. Thanks in advance for your advice.
Jul 13 '12 #1
4 2099
jhardman
3,406 Expert 2GB
that is weird. I've seen some crazy stuff where it looks like there is an old value cached somewhere, but in this case if you never used this file in the past then I don't know why you would get it now.

1- are you absolutely certain the web server is noticing that you are editing the script? Can you see other edits come through?

2- Do you have high-level access to that machine? Can you restart IIS?

3- Have you considered connecting with a DSN rather than a file path?

Jared
Jul 13 '12 #2
Thank you for your quick reply.

Well, I can't say that this file never existed on that computer, and it's a file name I might have used in the past. But I'm pretty sure I never used it in conjunction with IIS. If it were a cached value, where would it be cached?

1) I'm not sure what you mean here. IIS is installed on a local computer (Windows Vista), and I am editing the files directly on that computer. I apologize if this isn't what you meant.

2) Yes, I log in as a user in the Administrator group. I have restarted the service and it gives the same error message.

3) I'm willing to try it. Do I set that up through the ODBC control panel?
Jul 13 '12 #3
Update per 3) I made a system DSN and changed my connection string to "DSN=TTA-DB;uid=;pwd=;" and I get the same error (referring to c:\windows\system32\inetsrv\ginstaff.mdb').
Jul 13 '12 #4
I've opened up regedit and searched for 'ginstaff.mdb' and it turned up no results.
Jul 14 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: J. Muenchbourg | last post by:
I keep getting "Unable to open registry key 'Temporary (volatile) Jet DSN " errors pointing to my connection string when the same connection string is working for a few of my other pages. The...
1
by: Colin Graham | last post by:
i am currently developing an asp.net web application which is linked to an Access database. The main problem that i have is in creating a global pathname that i can access. When i put my string...
0
by: timandsuzi36 | last post by:
I have a WinForms App that is launching an Access 2003 db Reports program. I am using the System.Diagnostics.Process object to do so. I thought that I could pass my db connection string to Access...
4
by: refer_to_website | last post by:
How can I use the Server.MapPath(".") value inside of the web.config? For example, when I add the following just before the </configuration>, and run via CTRL-F5, I receive error The '&'...
2
by: HarryMangurian | last post by:
I am really confused ! - Form1 uses an openfiledialoag to get a public strfilename. - Forms 2 and 3 both connect to the database specified in the file name. The connection string is shown below. ...
1
by: madfisher | last post by:
Hi, I'm trying to set a conection string for my Access DB and I want to use a DSN. This is what I'm using: this.oleDbConn.ConnectionString =...
0
by: Ian Semmel | last post by:
In the Settings I have Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Students.MDB Is there some function to use which changes |DataDirectory| to the real directory ?
3
by: blue875 | last post by:
Ok, I've tried searching, and haven't found the answer, so it must mean everyone else but me already knows this. I have an Access 2000 form that I want to connect to an Access 2000 table in the...
1
by: dellis | last post by:
Problem: My project was initially created without putting passwords in the connection string. When I added the password in the connection string, it disappears when performing a database fill. I...
1
by: =?Utf-8?B?QXR1bCBSYW5l?= | last post by:
I am declareing my connection string in web.config file like that ; <connectionStrings> <add name ="SQLConnectionString" connectionString ="Persist Security Info=False;User...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.