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 September 5th, 2003, 10:54 AM
Registered User
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Book examples duff?

Hi all,

I've just started working through 'Beginning ASP.NET using VB.NET' and I'm having some trouble with the examples in the book. I'm at the point where I'm trying to bind to a database (chapter 2, example datacontrol.aspx) and I'm getting the following error from my browser:

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

'C:\Program Files\Microsoft.NET\FrameworkSDK\Samples\quickstar t\aspplus\samples\grocertogo\data\grocertogo.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
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: 'C:\Program Files\Microsoft.NET\FrameworkSDK\Samples\quickstar t\aspplus\samples\grocertogo\data\grocertogo.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.

This does kind of make sense, the default location that the .NET SDK installed to is nowhere near the '5040' virtual directory containing the code examples. What is going on here?

Have I hugely missed something or is this a massive publishing typo?

Any help would be appreciated, this is driving me nuts!

Thanks all.

 
Old September 5th, 2003, 01:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

move grocertogo.mdb into another folder like:

C:\DB\grocertogo.mdb

Also check the spelling of the database.
 
Old September 8th, 2003, 04:37 AM
Registered User
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the suggestion. Upon further investigation however, it transpires that the code supplied in the book (and on this website) gives the wrong path to the database and should be:

C:\Program Files\Microsoft.NET\SDK\v1.1\QuickStart\aspplus\sa mples\grocertogo\data\grocertogo.mdb

NOT

C:\Program Files\Microsoft.NET\FrameworkSDK\Samples\quickstar t
\aspplus\samples\grocertogo\data\grocertogo.mdb

Thanks again for your suggestion.






Similar Threads
Thread Thread Starter Forum Replies Last Post
My application based on book examples in C#. agresor BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 May 6th, 2008 02:06 AM
Difference in book and examples golf1052 BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 1 June 15th, 2007 04:14 PM
problems with examples in book skicrud Javascript How-To 2 May 27th, 2004 08:52 AM
Problems with the examples from the J2EE book alf.guzman J2EE 0 April 20th, 2004 09:43 AM
Book Examples luisfco Pro VB 6 1 September 5th, 2003 06:50 PM





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