Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 March 18th, 2011, 02:25 PM
Authorized User
 
Join Date: Feb 2011
Posts: 33
Thanks: 5
Thanked 0 Times in 0 Posts
Default Ch14, Try it out pg505-pg511

Hi Imar,

I run newphotoalbum.aspx. I enter a name for the album and it redirects to managephotoalbum.aspx

I enter data into description, tooltip, then I browse to a .jpg file on my PC (note validation tells me I have to)

I then get the error:

Quote:
Server Error in '/Site' Application.
--------------------------------------------------------------------------------

Could not find a part of the path 'C:\BegASPNET\Site\GigPics\ad97764b-2e8b-43a4-86c8-2051bd15d643.jpg'.
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.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\BegASPNET\Site\GigPics\ad97764b-2e8b-43a4-86c8-2051bd15d643.jpg'.
I copied this for source code under chapter14. Is there anything else I need to copy to get this working?

TDG

Last edited by TeaDrinkingGeek; March 18th, 2011 at 02:28 PM..
 
Old March 18th, 2011, 04:04 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi TDG,

Page 505-511 don't have you save the file yet, so maybe you copied too much code too early?

The TIO on page 515 shows you how to create the GigPics folder and mentions the necessary security settings.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old March 19th, 2011, 06:07 AM
Authorized User
 
Join Date: Feb 2011
Posts: 33
Thanks: 5
Thanked 0 Times in 0 Posts
Default

I'll go back and redo that task again.

Thanks
TDG





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch14, Try out pg493 TeaDrinkingGeek BOOK: Beginning ASP.NET 4 : in C# and VB 3 March 18th, 2011 09:25 AM
Ch14 Try It Out Pg. 506 eiviery BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 5 November 11th, 2009 02:01 PM
My VB Code for Ch14 PatFrank BOOK: Beginning ASP.NET 2.0 and Databases 8 April 17th, 2007 02:34 PM





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