Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 15th, 2005, 10:24 PM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem Connecting to Microsoft Access Database

Hi

I'm a beginner. Hope you can help.

I have an Access database I am trying to connect to. In Visual Basic, the connection string I provided works fine as a Windows applications, but when I use the same string as an ASP.NET application to try and get data to bind into a DataGrid, I get the error message that the Microsoft Jet engine cannot open the file ... "It is already opened exclusively by another user, or you need permission to view its data." I'm guessing its a problem with permissions, but how do I sort that out? The .mdb file is located in the same folder as the web application files - c:\inetpub\wwwroot\webapplication1.

Any help is much appreciated!

Eric
 
Old September 17th, 2005, 03:12 AM
Registered User
 
Join Date: Sep 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Fairly obvious point - do you have th database open in Access when you are trying to view the page? Occasionally I get similar errors when viewing a database page and the database is open.

Might be worth putting it in a subfolder (e.g. dBase) - this is good practice since most hosts only allow databases to be utilised in certain folders. This way you can set permissions etc. of this folder without affecting the application directory.

What is the connection string/code you are using?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 Connecting to Access Database robodent BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 4 May 11th, 2006 03:32 PM
How to save a picture in Microsoft Access Database Edward King Java Databases 0 January 4th, 2006 01:27 AM
Microsoft Access can't open the database because. vinodkalpaka Classic ASP Components 2 August 4th, 2004 06:27 PM
Microsoft Access can't open the database because. vinodkalpaka Classic ASP Databases 2 July 24th, 2004 04:37 PM
Connecting to an Access 2000 database Jonny .NET Web Services 0 November 10th, 2003 03:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.