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

Access '97 Connection Problem

I am developing with VS.NET 2003 on the ASP.NET 1.1 platform.

I have created a small app that interacts with an existing Access 97 db. At
this point in time, my higher ups are unwilling to migrate the db to a more
current version.

The app works on my local machine no problem. I have the db located in the
C:\Inetpub\wwwroot\Database folder.

I was instructed to upload the app to a certain company server, which runs
Windows Server 2003. The database however, resides on a different company
server.

Now when I try to run my app, I get the following error. I am perplexed
because other apps written in classic asp are able to interact with this db.
Any suggestions?
Server Error in '/IB' Application.
--------------------------------------------------------------------------------

The Microsoft Jet database engine cannot open the file
'\\a-main\drive-c\bestdesk\desk.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.OleDb.OleDbException: The Microsoft Jet
database engine cannot open the file '\\a-main\drive-c\bestdesk\desk.mdb'.
It is already opened exclusively by another user, or you need permission to
view its data.

Source Error:

Line 106: cmdSelect = new OleDbCommand(strSelect, myConnection);
Line 107:
Line 108: myConnection.Open();
Line 109: object ret = cmdSelect.ExecuteScalar();
Line 110: myConnection.Close();

Source File: c:\inetpub\wwwroot\ib\layers\data\ib_data.cs Line: 108

Stack Trace:

[OleDbException (0x80004005): The Microsoft Jet database engine cannot open
the file '\\a-main\drive-c\bestdesk\desk.mdb'. It is already opened
exclusively by another user, or you need permission to view its data.]
System.Data.OleDb.OleDbConnection.ProcessResults(I nt32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvid er() +57
System.Data.OleDb.OleDbConnection.Open() +203
IB.Layers.Data.IB_Data.Find_Broker(String IB_Acct, String Key) in
c:\inetpub\wwwroot\ib\layers\data\ib_data.cs:108
IB.Layers.Business.IB_Biz.Find_Broker(String IB_Acct, String Key) in
c:\inetpub\wwwroot\ib\layers\business\ib_biz.cs:90
IB.Controls.Ctrl_logon.Btn_Login_Click(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\IB\Ctrls\Ctrl_logon.ascx.cs:85
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
Version:1.1.4322.2300
Mar 29 '06 #1
4 1566

I'm not sure if Microsoft Jet is "auto included" anymore.

You might have to install it explicitly.

...

Also.

That error sometimes means a "readonly" status on the file....via whichever
account is trying to open it.

Check user priv's for the asp.net account.

KB829558
http://www.microsoft.com/downloads/d...DisplayLang=en

"Frank" <fk******@pfmail.com> wrote in message
news:ub****************@TK2MSFTNGP11.phx.gbl...
I am developing with VS.NET 2003 on the ASP.NET 1.1 platform.

I have created a small app that interacts with an existing Access 97 db. At this point in time, my higher ups are unwilling to migrate the db to a more current version.

The app works on my local machine no problem. I have the db located in the
C:\Inetpub\wwwroot\Database folder.

I was instructed to upload the app to a certain company server, which runs Windows Server 2003. The database however, resides on a different company
server.

Now when I try to run my app, I get the following error. I am perplexed
because other apps written in classic asp are able to interact with this db. Any suggestions?
Server Error in '/IB' Application.
-------------------------------------------------------------------------- ------
The Microsoft Jet database engine cannot open the file
'\\a-main\drive-c\bestdesk\desk.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.OleDb.OleDbException: The Microsoft Jet
database engine cannot open the file '\\a-main\drive-c\bestdesk\desk.mdb'.
It is already opened exclusively by another user, or you need permission to view its data.

Source Error:

Line 106: cmdSelect = new OleDbCommand(strSelect, myConnection);
Line 107:
Line 108: myConnection.Open();
Line 109: object ret = cmdSelect.ExecuteScalar();
Line 110: myConnection.Close();

Source File: c:\inetpub\wwwroot\ib\layers\data\ib_data.cs Line: 108

Stack Trace:

[OleDbException (0x80004005): The Microsoft Jet database engine cannot open the file '\\a-main\drive-c\bestdesk\desk.mdb'. It is already opened
exclusively by another user, or you need permission to view its data.]
System.Data.OleDb.OleDbConnection.ProcessResults(I nt32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvid er() +57
System.Data.OleDb.OleDbConnection.Open() +203
IB.Layers.Data.IB_Data.Find_Broker(String IB_Acct, String Key) in
c:\inetpub\wwwroot\ib\layers\data\ib_data.cs:108
IB.Layers.Business.IB_Biz.Find_Broker(String IB_Acct, String Key) in
c:\inetpub\wwwroot\ib\layers\business\ib_biz.cs:90
IB.Controls.Ctrl_logon.Btn_Login_Click(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\IB\Ctrls\Ctrl_logon.ascx.cs:85
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292

-------------------------------------------------------------------------- ------ Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

Mar 29 '06 #2
Keep in mind, those are suggestions, I don't know if that is the exact
issue.

...
"Frank" <fk******@pfmail.com> wrote in message
news:ub****************@TK2MSFTNGP11.phx.gbl...
I am developing with VS.NET 2003 on the ASP.NET 1.1 platform.

I have created a small app that interacts with an existing Access 97 db. At this point in time, my higher ups are unwilling to migrate the db to a more current version.

The app works on my local machine no problem. I have the db located in the
C:\Inetpub\wwwroot\Database folder.

I was instructed to upload the app to a certain company server, which runs Windows Server 2003. The database however, resides on a different company
server.

Now when I try to run my app, I get the following error. I am perplexed
because other apps written in classic asp are able to interact with this db. Any suggestions?
Server Error in '/IB' Application.
-------------------------------------------------------------------------- ------
The Microsoft Jet database engine cannot open the file
'\\a-main\drive-c\bestdesk\desk.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.OleDb.OleDbException: The Microsoft Jet
database engine cannot open the file '\\a-main\drive-c\bestdesk\desk.mdb'.
It is already opened exclusively by another user, or you need permission to view its data.

Source Error:

Line 106: cmdSelect = new OleDbCommand(strSelect, myConnection);
Line 107:
Line 108: myConnection.Open();
Line 109: object ret = cmdSelect.ExecuteScalar();
Line 110: myConnection.Close();

Source File: c:\inetpub\wwwroot\ib\layers\data\ib_data.cs Line: 108

Stack Trace:

[OleDbException (0x80004005): The Microsoft Jet database engine cannot open the file '\\a-main\drive-c\bestdesk\desk.mdb'. It is already opened
exclusively by another user, or you need permission to view its data.]
System.Data.OleDb.OleDbConnection.ProcessResults(I nt32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvid er() +57
System.Data.OleDb.OleDbConnection.Open() +203
IB.Layers.Data.IB_Data.Find_Broker(String IB_Acct, String Key) in
c:\inetpub\wwwroot\ib\layers\data\ib_data.cs:108
IB.Layers.Business.IB_Biz.Find_Broker(String IB_Acct, String Key) in
c:\inetpub\wwwroot\ib\layers\business\ib_biz.cs:90
IB.Controls.Ctrl_logon.Btn_Login_Click(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\IB\Ctrls\Ctrl_logon.ascx.cs:85
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292

-------------------------------------------------------------------------- ------ Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

Mar 29 '06 #3

Thanks for your replies. We figured it out. We found the solution at
http://www.codeproject.com/aspnet/Sec_Run_ASPNET_WP.asp
*** Sent via Developersdex http://www.developersdex.com ***
Mar 29 '06 #4
Ok, and thanks for posting the answer.

The override policy issue is good to know.


"Frank K" <fk******@pfmail.com> wrote in message
news:u7**************@TK2MSFTNGP10.phx.gbl...

Thanks for your replies. We figured it out. We found the solution at
http://www.codeproject.com/aspnet/Sec_Run_ASPNET_WP.asp
*** Sent via Developersdex http://www.developersdex.com ***

Mar 29 '06 #5

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

Similar topics

26
by: Dragon | last post by:
I have an Access 2003 .mde sitting on an SQL Server. The tables for the application also sit on the Server. I'm having a problem with ODBC on only one of about 10 machines. All the other machines...
6
by: Terry Bell | last post by:
We've had a very large A97 app running fine for the last seven years. I've just converted to SQL Server backend, which is being tested, but meanwhile the JET based version, running under terminal...
2
by: Chuck Ritzke | last post by:
Hi all, I am getting an intermittant error after uploading a project from my development machine. I click on a link which opens an aspx page that, upon page load, reads a very small amount of...
4
by: kthiagar | last post by:
Hi I am trying to connect to a password protected access file from VB.NET. I have no problem in connecting to Access, if I remove the password. This is what I am doing: In the server explorer,...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
3
by: sammyloo | last post by:
Hi all, I'm experiencing a problem using ASP.NET web services to access a different server with SQL Server 2000 database. And I get the error of the following Exception Details:...
1
by: garry.oxnard | last post by:
Can anyone help me to solve a problem which involves switching from Access to Excel (then back to Access) programatically please? I have an Excel template which, on open, also opens an Access...
18
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...
9
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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,...
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
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,...

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.