Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 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 March 6th, 2018, 03:34 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 50%
Activity: 50% Activity: 50% Activity: 50%
Join Date: Mar 2018
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default page 517 - using model binding with linq queries

To test out the functionality you have so far, save all your changes, close all open files, and
then request NewPhotoAlbum.aspx in your browser. Make sure you don’t accidentally open
ManagePhotoAlbum.aspx, because it requires a query string that is sent by NewPhotoAlbum.aspx.
Enter a new name for the photo album and click Insert. You’re taken to ManagePhotoAlbum.aspx,
where you can enter new pictures. For now, all you can do is enter the description of the picture,

So i have followed the book word by word but when i enter a new album name in NewPhotoAlbum.aspx .. i get this error message...

HTTP Error 404.0 - Not Found

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Most likely causes:
•The directory or file specified does not exist on the Web server.
•The URL contains a typographical error.
•A custom filter or module, such as URLScan, restricts access to the file.

Things you can try:
•Create the content on the Web server.
•Review the browser URL.
•Check the failed request tracing log and see which module is calling SetStatus. For more information, click here.

Detailed Error Information:

IIS Web Core



Error Code

Requested URL

Physical Path

Logon Method

Logon User

Request Tracing Directory
C:\Users\gb7bold1\Documents\IISExpress\TraceLogFil es\SITE

The record gets added to the database but the page doesnt re-direct to the Response.Redirect(string.Format("ManagePhotoAlbum? PhotoAlbumId={0}", photoAlbum.Id.ToString()));

I have checked for typo's etc, i just cant get my head around this one. please help.
Reply With Quote
  #2 (permalink)  
Old March 8th, 2018, 03:52 AM
Imar's Avatar
Wrox Author
Points: 71,384, Level: 100
Points: 71,384, Level: 100 Points: 71,384, Level: 100 Points: 71,384, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,980
Thanks: 79
Thanked 1,564 Times in 1,541 Posts

Hi there,

Two things to check:

1. Did you install the friendly URL package earlier in the book? If not, try adding the .aspx extension to the file ManagePhotoAlbum in the redirect code.

2. Is the ManagePhotoAlbum page really called ManagePhotoAlbum?

If all fails, can you zip up the site and make it available online somewhere? Then I'll take a look.


Imar Spaanjaars
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!
Reply With Quote

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
Chapter 14 A simple model binding application hansheung BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 2 November 22nd, 2016 04:42 AM
Chapter 14 page 517 injen BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 7 September 26th, 2016 10:00 AM
hapter 14 Third Try It Out A Simple Model Binding Application, page 505 yasirmehmood BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 11 March 24th, 2016 03:45 AM
SProcs and Not Linq Queries fzr600dave BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 2 May 17th, 2009 02:04 PM
confusing in ADO.NET Entity Data Model,Linq to sql angelboy ADO.NET 5 November 21st, 2008 04:01 PM

All times are GMT -4. The time now is 10:50 AM.

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