Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 5th, 2003, 11:54 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
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.

  #2 (permalink)  
Old September 5th, 2003, 02:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,111
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. 
  #3 (permalink)  
Old September 8th, 2003, 05:37 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
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.

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 03: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 05:14 PM
problems with examples in book skicrud Javascript How-To 2 May 27th, 2004 09:52 AM
Problems with the examples from the J2EE book alf.guzman J2EE 0 April 20th, 2004 10:43 AM
Book Examples luisfco Pro VB 6 1 September 5th, 2003 07:50 PM



All times are GMT -4. The time now is 09:00 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.