473,605 Members | 2,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot connet to access database vs2003


I have problems connecting my access database I get information .. I
cant use my database and I'm administrator on my computer so permission
shutnot bee problem, but I dont know Where is the problem. Can enybody
help me!!!!

Server Error in '/Koulu/tietokannat' Application.
--------------------------------------------------------------------------------

The Microsoft Jet database engine cannot open the file
'C:\Inetpub\www root\Asiakas_ti etokanta.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\Asiakas_ti etokanta.mdb'. It is already opened
exclusively by another user, or you need permission to view its data.

Source Error:
Line 32: {
Line 33: // Put user code to initialize the page here
Line 34: daAsiakas.Fill( dsAsiakas1,"Asi akas");
Line 35: DataGrid1.DataB ind();
Line 36: }
Source File: c:\inetpub\wwwr oot\koulu\tieto kannat\webform1 .aspx.cs
Line: 34

Stack Trace:
[OleDbException (0x80004005): The Microsoft Jet database engine cannot
open the file 'C:\Inetpub\www root\Asiakas_ti etokanta.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()
System.Data.Com mon.DbDataAdapt er.QuietOpen(ID bConnection connection,
ConnectionState & originalState)
System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, String
srcTable)
tietokannat.Web Form1.Page_Load (Object sender, EventArgs e) in
c:\inetpub\wwwr oot\koulu\tieto kannat\webform1 .aspx.cs:34
System.Web.UI.C ontrol.OnLoad(E ventArgs e)
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.P age.ProcessRequ estMain()


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.573;
ASP.NET Version:1.1.432 2.573

--
Enska
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Dec 7 '05 #1
2 2116
In Access to make it so the default is NOT to open the database
exclusively each time:
Tools | Options | Advanced | Default Open Mode of Shared instead of
Exclusive

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips

Dec 7 '05 #2
Enska wrote:
I have problems connecting my access database I get information .. I
cant use my database and I'm administrator on my computer so
permission
shutnot bee problem, but I dont know Where is the problem. Can enybody
help me!!!!

Server Error in '/Koulu/tietokannat' Application.
--------------------------------------------------------------------------------
There was no way for you to know it, but this is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-knowledgeable person here who
can answer your question, you can eliminate the luck factor by posting your
question to a group where those dotnet-knowledgeable people hang out. I
suggest microsoft.publi c.dotnet.framew ork.aspnet.
However, read on:
The Microsoft Jet database engine cannot open the file
'C:\Inetpub\www root\Asiakas_ti etokanta.mdb'. It is already opened
exclusively by another user, or you need permission to view its data.


This identical error occurs in classic ASP as well when permissions are not
set correctly.

All users of an Access database require Modify permissions for the folder
containing the database to allow multi-user activity. Users need to be able
to create, modify and delete the locking file, Asiakas_tietoka nta.ldb in
your case. Without the ldb file, the database can only be opened by one user
at a time.

So, if your site is using anonymous access, the aspnet user needs to be
granted permissions for that folder. If using Windows authentication, the
users need to be granted those permissions.

I would suggest moving the database to a folder outside of wwwroot to
prevent people from downloading the mdb file by entering its address in the
browser address box.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 7 '05 #3

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

Similar topics

18
9124
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft page "How to: Connect to Data in an Access Database"
9
1966
by: =?Utf-8?B?RnJpdHo=?= | last post by:
Hi all, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: ======= The Microsoft page "How to: Connect to Data in an Access Database
1
1489
by: =?Utf-8?B?VGVycnk=?= | last post by:
Hi, I am a newbe here and am working through some books on using ADO.Net. These database books were writen for VS2003. I have both VS2003 andVS2005. In VS2003 all works fine. Right click 'Data Connections', select add new connection, switch to 'Provider' tab and select Provider=Microsoft.Jet.OLEDB.4.0, click Next, and browse to the Access mdf file and all is ok. In VS2005 this does not work! I right click 'Data Connections', select...
6
1251
by: =?Utf-8?B?VGVycnk=?= | last post by:
When I asked this question before, don't think I was showing up as an MSDN subscriber, so I hope that is fixed now. I am a newbe here and am working through some books on using ADO.Net. These database books were writen for VS2003. I have both VS2003 andVS2005. In VS2003 all works fine. Right click 'Data Connections', select add new connection, switch to 'Provider' tab and select Provider=Microsoft.Jet.OLEDB.4.0, click Next, and browse to...
0
7934
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
8425
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
8071
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
6743
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5886
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5445
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3912
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...
0
3958
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1271
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.