473,800 Members | 2,999 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cant Connect to Data base

Hi every body
I have a problem with accesses and visual studio. I've just installed
XP and I can't get a connection with the Data base. I have this error
and I don't know how to fix it

The Microsoft Jet database engine cannot open the file
'C:\Inetpub\www root\Manufactor \DBManufactor\d bmanufactor.mdb '. It is
already opened exclusively by another user, or you need permission to
view its data.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Data.Ole Db.OleDbExcepti on: The Microsoft Jet
database engine cannot open the file
'C:\Inetpub\www root\Manufactor \DBManufactor\d bmanufactor.mdb '. It is
already opened exclusively by another user, or you need permission to
view its data.

Source Error:

Line 29: private void Page_Load(objec t sender, System.EventArg s e)
Line 30: {
Line 31: this.oleDbConne ction1 .Open ();
Line 32: this.oleDbDataM ainAdapter .Fill (this.dataSetPl ayers1 );
Line 33: this.oleDbConne ction1 .Close ();

Source File: c:\inetpub\wwwr oot\manufactor\ webform1.aspx.c s Line:
31

Stack Trace:

[OleDbException (0x80004005): The Microsoft Jet database engine cannot
open the file 'C:\Inetpub\www root\Manufactor \DBManufactor\d bmanufactor.mdb '.
It is already opened exclusively by another user, or you need
permission to view its data.]
System.Data.Ole Db.OleDbConnect ion.ProcessResu lts(Int32 hr)
System.Data.Ole Db.OleDbConnect ion.InitializeP rovider()
System.Data.Ole Db.OleDbConnect ion.Open()
Manufactor.WebF orm1.Page_Load( Object sender, EventArgs e) in
c:\inetpub\wwwr oot\manufactor\ webform1.aspx.c s:31
System.Web.UI.C ontrol.OnLoad(E ventArgs e)
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.P age.ProcessRequ estMain()
Nov 16 '05 #1
7 2845
If you create the database in the design page with the tools tab, you can
manually setup and test the database?

If you make a new dataConnector, click on properties and click on the
properties DataSource, then click on the add project data source wizard?

It should give you the chance to examine all the settings. The blank
password is advised, but databases tend to lock you out to protect the data
integrity.

Are you trying to open the database, copy to a new database that you operate
on, then close the database? And operate on the copy?

Do you need to make changes or can it be read only? Usually Ive found it
helps to allow all changes to be discarded by dumping the copy, and make
several warning buttons before the main database is changed
"Lian" <li*****@hotmai l.com> wrote in message
news:1a******** *************** ***@posting.goo gle.com...
Hi every body
I have a problem with accesses and visual studio. I've just installed
XP and I can't get a connection with the Data base. I have this error
and I don't know how to fix it

The Microsoft Jet database engine cannot open the file
'C:\Inetpub\www root\Manufactor \DBManufactor\d bmanufactor.mdb '. It is
already opened exclusively by another user, or you need permission to
view its data.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Data.Ole Db.OleDbExcepti on: The Microsoft Jet
database engine cannot open the file
'C:\Inetpub\www root\Manufactor \DBManufactor\d bmanufactor.mdb '. It is
already opened exclusively by another user, or you need permission to
view its data.

Source Error:

Line 29: private void Page_Load(objec t sender, System.EventArg s e)
Line 30: {
Line 31: this.oleDbConne ction1 .Open ();
Line 32: this.oleDbDataM ainAdapter .Fill (this.dataSetPl ayers1 );
Line 33: this.oleDbConne ction1 .Close ();

Source File: c:\inetpub\wwwr oot\manufactor\ webform1.aspx.c s Line:
31

Stack Trace:

[OleDbException (0x80004005): The Microsoft Jet database engine cannot
open the file 'C:\Inetpub\www root\Manufactor \DBManufactor\d bmanufactor.mdb '. It is already opened exclusively by another user, or you need
permission to view its data.]
System.Data.Ole Db.OleDbConnect ion.ProcessResu lts(Int32 hr)
System.Data.Ole Db.OleDbConnect ion.InitializeP rovider()
System.Data.Ole Db.OleDbConnect ion.Open()
Manufactor.WebF orm1.Page_Load( Object sender, EventArgs e) in
c:\inetpub\wwwr oot\manufactor\ webform1.aspx.c s:31
System.Web.UI.C ontrol.OnLoad(E ventArgs e)
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.P age.ProcessRequ estMain()

Nov 16 '05 #2
Thank you for your answer but fortunately I've tried all of those things
and it didn't work. How do I open the data base for more then one user?
when i open the accesses a copy temp file appears with alock on the
icon. how do i unlock it?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
Ok, maybe its just wording here, but is your program going to modify any
database records? I mean, can you open read only?

When designing, I typically create dummy databases with known values at
specific locations so that no real data is lost

Your program should be able to operate on a new database you just created.
If you make a new db will you get the "already in use" error?

Do you run Microsoft Access ? Is it open? Does it have your database open?
If so, make sure Access closes the database because Ive had the "unable to
access db" if Access has it open

I dont know what you mean by "open the accesses a copy temp file"
"Liran By" <li*****@hotmai l.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Thank you for your answer but fortunately I've tried all of those things
and it didn't work. How do I open the data base for more then one user?
when i open the accesses a copy temp file appears with alock on the
icon. how do i unlock it?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #5

Hi

I am getting desperate .I will try to be more clear. When I'm opening
the access in the same folder another file is opening also. The icon is
the same as the icon of access but with one difference. It has a lock on
it and I think it causes the problem. Do you know how to unlock this
file?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #6
When you open a Jet ("Access") database, a file with the same name as the
MDB file is created, but with extension LDB. This is normal, and its
purpose is to keep track of who's in the database.

Whatever you are doing to open the database the first time is apparently
opening in in "exclusive" mode, which is why you get that message. But, the
LDB file is not the source of the problem.

Anne

"Liran By" <li*****@hotmai l.com> wrote in message
news:%2******** *******@TK2MSFT NGP09.phx.gbl.. .

Hi

I am getting desperate .I will try to be more clear. When I'm opening
the access in the same folder another file is opening also. The icon is
the same as the icon of access but with one difference. It has a lock on
it and I think it causes the problem. Do you know how to unlock this
file?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #7
Hi Liran,

When you say "Access" ?? This has 2 meanings when talking about databases
and I dont know which one you are saying. Microsoft Access is a well known
application progam; but the word access means to get at something, like a
database; So you might say
"MS Access" and thats what Im assuming you mean here.

1. You have MS Access running and double click on the database file icon
you want to use, it has the MS Access style icon.
2. It opens, but creates another icon, which adds a "lock" picture, okay
Ill try something with my MS Access, hold on...

Ok, when I do this, it gets a second icon that shows who opened the file.
Im guessing that Access automatically opens a database as tight as it gets,
meaning total lock.

If youre coding in C# with a database *.mdb? and MS Access opens it first?
Its going to be locked out. (I think) Could your question be how to have MS
Access AND your C# program use a database at the same time??
"Liran By" <li*****@hotmai l.com> wrote in message
news:%2******** *******@TK2MSFT NGP09.phx.gbl.. .

Hi

I am getting desperate .I will try to be more clear. When I'm opening
the access in the same folder another file is opening also. The icon is
the same as the icon of access but with one difference. It has a lock on
it and I think it causes the problem. Do you know how to unlock this
file?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #8

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

Similar topics

0
2397
by: Aaron | last post by:
Hi Guys, I have a dbase installed on a network where the clints have linked tables to the database on the server. I found that i had to make some minor changes to the tables on the server where the client databases look to for their data after I made the changes I tried to open one of the clients databases and found that I was getting an error 3051 open exclusive where when the client tries to connect to the tables on the server it...
5
5694
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere 4.0, SourceOffSite 4.1, VSS Connect 1.5, SourceXT 2.1, VSS Remoting 2.5,
3
4568
by: Jassim Rahma | last post by:
I would like to know what is the best way to onnect to connect to a database in general which provides you with full functionality & fast access? Best Regards, Jassim Rahma *** Sent via Developersdex http://www.developersdex.com ***
3
4272
by: asemeiks | last post by:
I'm using Access 97, Jet 4.0. the data resides on a Win 2000 domain server. Using .Net 1.1 and IIS 5.0 on a local XPPro computer I am trying connect to a Jet database on the server. If the data source is on the local computer I can connect ok. If it is is on the server I cannot connect and get the following error. 'Error message. "The Microsoft Jet database engine cannot open the file ''. It is already opened exclusively by another...
1
1742
by: perjorgen | last post by:
Hi, My asp.net can't connect to any sql database when running 1.1 I can connect to databases if I make a windows application and if if I run asp.net 2.0 Other computers have no problem connecting to my database I have not seen descriptions of similar errors when searching the web I have tried to reinstall and remove/install
3
2640
by: nandhanvijay | last post by:
hi every am trying to connect data base in vb.net but am unable to connect. As per the book am following that says to connect to data base go to tools menu connect to data base option. u will get data link property . But am not getting that . Am getting add connection from which i can able to select the data base like oracle or sql but not able to move further. When i click test button. your test connection is fail. am not able to get data...
6
4604
by: Al G | last post by:
Can someone tell me what I need to get connected to our AS400? I am trying to write an app in VS2005(Data source, Gridview) that requires data from files on our AS400. I've downloaded DB2, and installed it, but apparently I need an additional product, "DB Connect" to actually make a connection. "DB connect" says that it will only display tables with a type of "T", and as far as I know, we are using files, not tables on the 400. Can...
5
1881
by: chevon1920 | last post by:
I am trying to do my assignment but I cant figure out how to get 8 data points per line to print to a file. Here is the assignment 1. Program asks the user to enter an odd number as a BASE, using this Base it creates 48 multiples of the BASE and prints in a data file "data_3b.txt", 8-data per line. 2. Program opens this data file, scans the contents of "data_3b.txt" file and counts all the odd data, and prints them on the screen: 4 data...
6
1966
flexsingh
by: flexsingh | last post by:
Hello there, I have constructed a option of choosing a court only available when member no = "0". This works fine and is in the first code: - <html> <head> </head> <body background="main background1.jpg" link="blue" vlink="blue"> <table width="350" border="1" align="center" cellpadding="0" cellspacing="1"> <tr>
0
9695
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9555
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10514
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10260
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10042
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5479
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4156
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3770
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2956
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.