Re: Help with connection string

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



The connection string looks correct.
Is that E drive accessible to the user account under whose context the
IIS process is running (if your website has Anonymous enabled, that will
usually be the IUSR_MACHINENAME account)? Does that account have Modify
permissions for the folder contining the database file?


Hakk wrote:
I was hoping someone could offer me a bit of help here. I am trying to
connect to an unpassworded Access 2007 database for use in a small
website.

For testing purposes I have everything stored locally, and am using
the following connection string:

ConnectString = "Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=E:\myWebs\htdocs\grahams\data\products.accdb;Persist Security
Info=False;"

All I get when I try to open the website is this:

Microsoft Office Access Database Engine error '80004005'

Unspecified error

/grahams/connection.asp, line 14

the connection.asp file is just this:

Dim conn, ConnectString
ConnectString = "Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=E:\myWebs\htdocs\grahams\data\products.accdb;Persist Security
Info=False;"
Set conn = Server.CreateObject("ADODB.Connection")
response.Write(ConnectString)
conn.open ConnectString

I have tried every combination of file name, and tried to use
server.mappath but I get the same error no matter what.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • Re: Permissions to Sql2005 database from IIS
    ... Is you database server & Web Server located on the same machine? ... You could create a local user account & have the application run under an application pool with the technical user account. ... I am setting up a Sql2005 database on a Windows Server, ... My website is running the normal IUSR account. ...
    (microsoft.public.dotnet.framework.aspnet)
  • ASP.NET & Integrated Security setup?
    ... integrated security in your connection string. ... I tried this in test page to connect to the Northwind ... have it's own ASPNET-type account so it only has accesses ... Northwind site and the Northwind database) ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Cant log in using .NET Provider (invalid username/password)
    ... a database with a table. ... with an account i created with no password. ... I've double checked the username & password and they are correct. ...
    (comp.databases.ingres)
  • Re: Getting User Info
    ... database, but now the user is my Windows account. ... connection string as Uid, as well as User ID and it still comes back the same. ... >> elevated access in order to do the migration, and that is alot of sprocs. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: SQL - Login falied, user null error w SSPI
    ... > 2) Integrated Windows Authentication ... account that you use for anonymous access in your web site. ... WITHIN THAT DATABASE, you can limit access to Select, ... >> Maybe you should add some more details about connection string, ...
    (microsoft.public.dotnet.security)