Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 August 29th, 2004, 04:02 PM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Database problem (Ch2 ASP.NET1.1)

Hi, I have a problem with connecting to a database:

Code:
The Microsoft Jet database engine cannot open the file 'C:\Documents and Settings\Dan Brammal\My Documents\BegASPNET11\Ch01'. It is already opened exclusively by another user, or you need permission to view its data.
The error is on line 22:

Code:
Line 20:        objConnection = new OleDbConnection(strConnect);
Line 21:        objCommand = new OleDbDataAdapter(strCommand, objConnection);
Line 22:        objCommand.Fill(DataSet1, "products");
Line 23:        DataGrid1.DataSource=DataSet1.Tables["Products"].DefaultView;
Line 24:        DataGrid1.DataBind();
The database is not open, and as far as I can tell I have full permissions on the database file and all folders in which it resides.

This is really annoying!! Anyone know a solution??

Thanks...

 
Old August 30th, 2004, 09:10 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

YOU don't need permissions- the ASPNET user needs permissions.

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee





Similar Threads
Thread Thread Starter Forum Replies Last Post
image varification problem in asp.net1.1 plz help nirmalbarsainyan ASP.NET 1.x and 2.0 Application Design 0 November 15th, 2006 12:54 AM
Error in hosting ASP.NET1.1 Project [email protected] ASP.NET 1.0 and 1.1 Basics 1 October 13th, 2006 07:39 AM
Sendmail, Application - ASP.NET1.1-Urgent..Pls ! Abins ASP.NET 1.0 and 1.1 Basics 1 February 21st, 2006 08:06 AM
Beginning ASP.NET1.1 with VB.NET 2003 jhock7 Wrox Book Feedback 1 February 9th, 2004 09:34 AM
Exercise ch2, page 82 ssr All Other Wrox Books 2 September 10th, 2003 03:42 AM





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