Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.0
This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.0 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 April 12th, 2004, 04:06 PM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with CH02 datacontrol.aspx

Hello
When Im trying to brows datacontrol.aspx I get something like that

Server Error in '/WroxASPNETTXT' Application.
--------------------------------------------------------------------------------

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

Source Error:


Line 24: objCommand = new OleDbDataAdapter(strCommand, objConnection);
Line 25:
Line 26: objCommand.Fill(Tabela1, "Products");
Line 27:
Line 28: HTMLTabela.DataSource=Tabela1.Tables["Products"].DefaultView;


Source File: C:\WroxASPNET\Roz2\DataGridAcces.aspx Line: 26

Stack Trace:


[OleDbException (0x80004005): The Microsoft Jet database engine cannot open the file 'C:\WroxASPNET\Roz2\grocertogo.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
   System.Data.Common.DbDataAdapter.QuietOpen(IDbConn ection connection, ConnectionState& originalState) +44
   System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +36
   ASP.DataGridAcces_aspx.Page_Load(Object sender, EventArgs e) in C:\WroxASPNET\Roz2\DataGridAcces.aspx:26
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +731




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

As you can see I have change path to MDB file

 
Old October 25th, 2004, 02:13 AM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,
    I got the same error as Nikon!Can any one you help us in sorting the
error? Thank you!
               Deepa!






Similar Threads
Thread Thread Starter Forum Replies Last Post
datacontrol.aspx example problem wendyhod ASP.NET 1.0 and 1.1 Basics 0 May 4th, 2005 09:48 AM
Chapter 2 datacontrol.aspx frogfur BOOK: Beginning ASP.NET 1.0 1 March 19th, 2005 12:59 PM
Chapte2 DataControl.aspx frogfur BOOK: ASP.NET Website Programming Problem-Design-Solution 0 February 11th, 2004 05:09 PM
Problem running datacontrol.aspx in Chapter 2 andersond BOOK: Beginning ASP.NET 1.0 5 October 29th, 2003 07:45 PM
Ch02 control.aspx different problem gwheeldon BOOK: Beginning ASP.NET 1.0 1 October 22nd, 2003 11:51 AM





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