Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 July 20th, 2003, 11:42 AM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can not retreive data from database

I have attempted to implement the datacontrol example in chapter 2 of Beginning ASP .Net book. However, I implemented the example using VS .Net. Whenever I open the page in explorer I get an error. The Jet database engine can not open the database because it is already open or does not have the permission. Keep in mind that I have tried the same code but for a Win application and everything was OK. Here is exactly what I did:
- Created the project with a Web Form.
- Added a Component
- Added and configured the Data Adapter and the Connection object and generated a dataset for that component with a public method to fill the dataset.
- Added a reference to the Component into the web form
- Added a typed dataset
- Added a grid to the web form and bound it to the typed dataset
- In the load function of the web form I called the Fill method of the component and bound the result to the grid.

I have gotten an error:
 System.Data.OleDb.OleDbException: The Microsoft Jet database engine cannot open the file 'D:\WebDevelopment\BegAsp\DatBase\Chapter2.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

It might be a matter of enabling ASP data access. If anyone when through this issue please let me know the solution.

Elie

eliea
 
Old July 22nd, 2003, 12:50 PM
Registered User
 
Join Date: Jul 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't know if this the solution to your problem. I had a different error message but I was unable to run a project from vs.net.
Anyway I had to go into c:\winnt\microsoft.net\framework\v1.04322\config1\ machine.config and change the password in process model attribute for username from aspx to SYSTEM (make sure you use all caps). aspx didn't have enough rights.


 
Old July 23rd, 2003, 04:37 PM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I thank you for your input. I change the file; however, the username was machine. I changed it to SYSTEM, and it did work. So again thank you for your help.

Elie

eliea
 
Old July 24th, 2003, 04:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

Try to assign appropriate permissions to IUSR_[your_machine_name] account.

...but the Soon is eclipsed by the Moon





Similar Threads
Thread Thread Starter Forum Replies Last Post
retreive data from database eugz Beginning PHP 2 February 15th, 2006 08:45 PM
How to retreive an image from database lovelyphor ADO.NET 2 October 18th, 2004 05:43 AM
Retreive records from the database using SP sri20040 Classic ASP Databases 1 October 6th, 2004 05:36 PM
How to retreive record ... arshad mahmood SQL Server 2000 1 August 16th, 2003 01:38 AM
Retreive Record arshad mahmood VB Databases Basics 2 July 23rd, 2003 08:07 AM





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