PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Deploying with a MDB file

 
 
John Baima
Guest
Posts: n/a
 
      30th Jul 2003
I have a small website that uses one MDB (Access) database. The
program works fine on my development machine, but it crashes when I
try to deploy it.

I'm getting the error message:

"The Microsoft Jet database engine cannot open the file
'C:\WebDb\vocab.mdb'. It is already opened exclusively by another
user, or you need permission to view its data."

But that is bogus. The file exists (I get a different message if the
file is not there). The file is not opened by another process, and I
have no idea why having the file in another location causes a
permission problem. The connection string is:


"Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
OLEDBatabase Locking Mode=1;Data Source=""C:\WebDb\vocab.mdb"";Jet
OLEDB:Engine Type=5;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet
OLEDB:System database=;Jet OLEDB:SFP=False;persist security
info=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:Encrypt
Database=False;Jet OLEDB:Create System Database=False;Jet OLEDBon't
Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica
Repair=False;User ID=Admin;Jet OLEDB:Global Bulk Transactions=1";

What am I doing wrong???

-John
John Baima
 
Reply With Quote
 
 
 
 
Rajeev Soni
Guest
Posts: n/a
 
      31st Jul 2003
Hi,

you need to give permissions on your MDB file for ASP.NET process on ur deployment machine.

Rajeev


"John Baima" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> I have a small website that uses one MDB (Access) database. The
> program works fine on my development machine, but it crashes when I
> try to deploy it.
>
> I'm getting the error message:
>
> "The Microsoft Jet database engine cannot open the file
> 'C:\WebDb\vocab.mdb'. It is already opened exclusively by another
> user, or you need permission to view its data."
>
> But that is bogus. The file exists (I get a different message if the
> file is not there). The file is not opened by another process, and I
> have no idea why having the file in another location causes a
> permission problem. The connection string is:
>
>
> "Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
> OLEDBatabase Locking Mode=1;Data Source=""C:\WebDb\vocab.mdb"";Jet
> OLEDB:Engine Type=5;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet
> OLEDB:System database=;Jet OLEDB:SFP=False;persist security
> info=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:Encrypt
> Database=False;Jet OLEDB:Create System Database=False;Jet OLEDBon't
> Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica
> Repair=False;User ID=Admin;Jet OLEDB:Global Bulk Transactions=1";
>
> What am I doing wrong???
>
> -John
> John Baima

 
Reply With Quote
 
John Baima
Guest
Posts: n/a
 
      31st Jul 2003
"Rajeev Soni" <(E-Mail Removed)> wrote:

>Hi,
>
>you need to give permissions on your MDB file for ASP.NET process on ur deployment machine.
>
>Rajeev


How is this done? I don't remember doing anything special on my
development machine. The deployment machine is Win Server 2000.

-John


 
Reply With Quote
 
Rajeev Soni
Guest
Posts: n/a
 
      31st Jul 2003
Hi,

well i exactly dont know to which user of "ASP.NET process u need to give permission" when i encountered this problem i just selected the MDB file and gave full control permission on it to "Everyone".

To set the permission just select the MDB file right click on it and go to securities tab and if you u dont find "Everyone" there just add and it give full permissions to it.

Rajeev.

"John Baima" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> "Rajeev Soni" <(E-Mail Removed)> wrote:
>
> >Hi,
> >
> >you need to give permissions on your MDB file for ASP.NET process on ur deployment machine.
> >
> >Rajeev

>
> How is this done? I don't remember doing anything special on my
> development machine. The deployment machine is Win Server 2000.
>
> -John
>
>

 
Reply With Quote
 
Paul Clement
Guest
Posts: n/a
 
      1st Aug 2003
On Wed, 30 Jul 2003 18:53:32 GMT, John Baima <(E-Mail Removed)> wrote:

¤ I have a small website that uses one MDB (Access) database. The
¤ program works fine on my development machine, but it crashes when I
¤ try to deploy it.
¤
¤ I'm getting the error message:
¤
¤ "The Microsoft Jet database engine cannot open the file
¤ 'C:\WebDb\vocab.mdb'. It is already opened exclusively by another
¤ user, or you need permission to view its data."
¤
¤ But that is bogus. The file exists (I get a different message if the
¤ file is not there). The file is not opened by another process, and I
¤ have no idea why having the file in another location causes a
¤ permission problem. The connection string is:
¤
¤
¤ "Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
¤ OLEDBatabase Locking Mode=1;Data Source=""C:\WebDb\vocab.mdb"";Jet
¤ OLEDB:Engine Type=5;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet
¤ OLEDB:System database=;Jet OLEDB:SFP=False;persist security
¤ info=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:Encrypt
¤ Database=False;Jet OLEDB:Create System Database=False;Jet OLEDBon't
¤ Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica
¤ Repair=False;User ID=Admin;Jet OLEDB:Global Bulk Transactions=1";

See the following:

PRB: Cannot Connect to Access Database from ASP.NET
http://support.microsoft.com/default...b;en-us;316675

INFO: Permissions to Connect to a Remote Access Database from ASP.NET
http://support.microsoft.com/default...b;en-us;307901


Paul ~~~ (E-Mail Removed)
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deploying exe-file ReidarT Microsoft VB .NET 2 28th Dec 2004 10:20 AM
Deploying a PRF File! Rickard Microsoft Outlook Installation 0 22nd Jun 2004 07:58 AM
Problem deploying MSI file Cuddle Bitch Microsoft Windows 2000 Group Policy 0 16th Mar 2004 07:49 PM
RE: Deploying Reg File diasmith [MSFT] Microsoft Windows 2000 Group Policy 0 27th Oct 2003 03:53 PM
Re: Deploying CF and SQL CE from an msi file Stan Adermann [Msft] Microsoft Dot NET Compact Framework 6 22nd Aug 2003 12:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:26 AM.