473,405 Members | 2,404 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,405 software developers and data experts.

can't start application because of password in Access

bob
Hi,

I use a Access database for my asp.net application.
I use this connection string:
sConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source =
c:\mydb.mdb"

Now i put a pasword to the Access database and i changed the connection
string to:
sConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source =
c:\mydb.mdb; Password=mypassw"

But then i get the error:
"Can't start application. The file is missing or is open in exclusive mode
by another user"
I opened the first time the file in exclusive mode in order to put the
password, but then i reopened it without exclusive mode.
Any idea how to solve this?
Thanks
Bob
Sep 30 '06 #1
4 1711
Instead of just the phrase Password, try using Database Password as I think
that's the more correct versoin for the JET driver.

Sometimes after opening an Access application it will stay locked for a
while. Look to see if there is a lock file with the same name as the
database in the directory. If so, try deleting the lock file and see if that
helps. Have you also tried rebooting in case the OS has a lock on it? I used
to have similar problems when I worked with Access and classic ASP and what
I ended up doing occasionally is creating a brand new Access mdb and dumping
the contents from the original into it to break the lock. It's a worste case
fix, but sometimes Access just gets something stuck in its mind and you
can't get around it.

--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"bob" <sdvsé@sds.dfgwrote in message
news:eZ*************@TK2MSFTNGP06.phx.gbl...
Hi,

I use a Access database for my asp.net application.
I use this connection string:
sConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source =
c:\mydb.mdb"

Now i put a pasword to the Access database and i changed the connection
string to:
sConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source =
c:\mydb.mdb; Password=mypassw"

But then i get the error:
"Can't start application. The file is missing or is open in exclusive mode
by another user"
I opened the first time the file in exclusive mode in order to put the
password, but then i reopened it without exclusive mode.
Any idea how to solve this?
Thanks
Bob


Sep 30 '06 #2
bob
Hi Mark,

I changed it into:
sConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source =
c:\mydb.mdb; Database Password=mypassw"

My error is know:
"can't find isam-file"

The Access-file is closed and there is no lock file with the same name.

??
"Mark Fitzpatrick" <ma******@fitzme.comschreef in bericht
news:Om**************@TK2MSFTNGP06.phx.gbl...
Instead of just the phrase Password, try using Database Password as I
think that's the more correct versoin for the JET driver.

Sometimes after opening an Access application it will stay locked for a
while. Look to see if there is a lock file with the same name as the
database in the directory. If so, try deleting the lock file and see if
that helps. Have you also tried rebooting in case the OS has a lock on it?
I used to have similar problems when I worked with Access and classic ASP
and what I ended up doing occasionally is creating a brand new Access mdb
and dumping the contents from the original into it to break the lock. It's
a worste case fix, but sometimes Access just gets something stuck in its
mind and you can't get around it.

--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"bob" <sdvsé@sds.dfgwrote in message
news:eZ*************@TK2MSFTNGP06.phx.gbl...
>Hi,

I use a Access database for my asp.net application.
I use this connection string:
sConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source =
c:\mydb.mdb"

Now i put a pasword to the Access database and i changed the connection
string to:
sConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source =
c:\mydb.mdb; Password=mypassw"

But then i get the error:
"Can't start application. The file is missing or is open in exclusive
mode by another user"
I opened the first time the file in exclusive mode in order to put the
password, but then i reopened it without exclusive mode.
Any idea how to solve this?
Thanks
Bob



Oct 1 '06 #3
"bob" <sdvsé@sds.dfgwrote in message
news:uA****************@TK2MSFTNGP02.phx.gbl...
I changed it into:
sConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source =
c:\mydb.mdb; Database Password=mypassw"

My error is know:
"can't find isam-file"

The Access-file is closed and there is no lock file with the same name.

??
Try this EXACTLY...

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\mydb.mdb;Jet OLEDB:Database
Password=mypassw;"
Oct 1 '06 #4
Bob, here is what I used last time of Access2000 db...

mADOConnection.Provider = "Microsoft.Jet.OLEDB.4.0;" & "User
ID=admin;Password=;"

Try using User ID... by default Access uses Admin for the user id. However
you or the person that created this database may have changed the user id.

Also, make sure you are out of Access completely before trying your code.
Access may have a lock on the database file.

If this does not work then create a new database in access using the default
user id and password. The default password in Access is no password as shown
above.

Hope this helps. JerryM
Oct 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: alan_sec | last post by:
Hi everybody, i need some help please. I have installed DB2 UDB 7.2 on Windows and created database and it worked fine (i could access it from control centar nad using eclipse plug-in...
9
by: Marc Miller | last post by:
Hi all, I have 2 dev. machines, the 1st is Win 2000 with .NET 7.0 and the 2nd is XP Pro with .NET 2003. My Web Server is Win 2000 Server with IIS 5.0. I can create a new project on my test...
3
by: wASP | last post by:
Hi, Apparently, I have a permissions issue. I am logged in as administrator, and my C: drive is accessible. Under the "Security" tab for Properties for Inetpub, for my "Internet Guest Account,"...
4
by: dennist685 | last post by:
Can't open my .mdb I was experimenting with opening an access database in IIS. For experimenting, I have an .mdb called HasbaraSample. In this case I copied it to the C:\Inetpub\wwwroot\Access...
8
by: carriolan | last post by:
Hi I have an MS Access based application almost ready for distribution to the public and I find that even though I have compiled it into an MDE file, tables and queries can still be be imported if...
0
by: Kirk | last post by:
The following C# web service works fine until you uncomment the lines setting UserName and Password. Then, Process.Start throws an Access is Denied Exception. This is with .NET 2.0, of course...
3
by: tomlebold | last post by:
When using Access security can each group have only one password? So all members of the group have the same and/or one password? Then in order to have each member of a group have their own password...
4
JodiPhillips
by: JodiPhillips | last post by:
MS Access2000 Hi everyone, I've searched the forums for an answer to this question and nothing jumps out at me. When a database is opened I want to automatically run code (at start-up) that...
1
by: Serenityquinn15 | last post by:
Hi! "Cannot Start your Application, the workgroup information file is missing or opened exclusively by another user" this is the error i got when i run my system. i'm using adodc connection to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.