Errata

Microsoft® ASP.NET 4 Step by Step

Errata for Microsoft® ASP.NET 4 Step by Step

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page xxv
last paragraph

conole -> console

aspnet4sbs -> asp.net4sbs

pascal  Jul 02, 2010 
Printed Page xx
Last sentence

In the "Getting Started" section, it tells you how to install and run IIS on your computer. The last sentence is missing an important step, however, which impacts your ability to browse html files later. Modify the end of the last sentence on this page to read "... next to Web Management Tools and World Wide Services, then expand Web Management Tools and select ASP.NET, and click OK."

Selecting the Web Management Tools checkbox doesn't enable the ASP.NET tools by default. If you don't check this as part of the process (or subsequently enable it by using the steps described on page 18 for turning on Classic ASP), you'll hit problems as early as Chapter 2.

Darrell Quick  Mar 13, 2011 
Printed Page 7
Example code

As written, the console window vanishes immediately after the HTTP response comes back. To make it stay around so you can read the response, add "Console.Readline();" immediately after "Console.WriteLine(reader.ReadToEnd());". Then the console window will stay open until you press enter.

Anonymous  Feb 27, 2011 
Printed Page 13
3rd paragraph

ISAPI says Internet Services Application Programming Interface,
should say Internet Server Application Programming Interface

Hadeed Khalid  Apr 18, 2013 
Printed Page 27
the second image

The second image shows a 4 appended at the end of the Alias name that shouldn't be there.

Anonymous  Aug 10, 2010 
Printed Page 30
.aspx example

To run IIS 7.5, ASP.NET 4.0 and 64 bit Windows 7, I needed to take the following steps: (1) open the IIS control panel (Control Panel->System & Security->Administrative Tools->IIS Manager), View Application Pools, add a new application pool that uses .NET version 4.0. (2) Click on the new ASPNETStepByStep application->Basic Settings and set the application pool to the new one. (3) Control Panel->Programs->Programs and Features->Turn Windows features on or off->Internet Information Services->World Wide Web Services->Application Development Features, make sure ASP.NET, CGI and ISAPI Extensions are checked. (4) Launch a command window with administrator privileges by going to the start menu and typing cmd.exe into the "search" box (as opposed to the "run" box) and pressing ctrl-shift-enter. (5) Change directories to c:\Windows\Microsoft.NET\Framework64\v4.0.30319 and run "aspnet_regiis.exe -i"

Some of these steps might be redundant.

Anonymous  Feb 27, 2011 
Printed Page 38
below the image

below the image the 2nd sentence says
"Later sections in look at."
should probably say
"Later sections look at."

Anonymous  Aug 10, 2010 
Printed Page 38
2nd paragraph

Incomplete sentence: "Later sections in look at each part of the pipeline in more detail." Seems like the 3rd word, in, should have been removed.

Rodney Hughes  Aug 02, 2011 
Printed Page 85
3rd paragraph

I use Visual Studio 2010 Professional-Evaluation Mode on Windows 7 Home Premium laptop.
Upon checking the source of UseCustomControl.aspx, the Register directive shows

<%@ Register Assembly="CustomControlLib" Namespace="CustomControlLib" Tagprefix="cc1" %>

It is stated in the book the Register directive to be

<%@ Register Assembly="CustomControlLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" Namespace="CustomControlLib" Tagprefix="cc1" %>

I have not gone through the book completely, when are the attributes Version,Culture and PublicKeyToken are they useful?

Anonymous  Jan 27, 2011 
Printed Page 105
In CreateChildControls() code

2 lines of code are missing from the CreateChildControls() code.

The following 2 lines of code...

this.tablePalindromes = new Table();
this.Controls.Add(tablePalindromes);

Should be placed between the last 2 lines of the function...

Paul Metzger  Jun 22, 2010 
Printed, PDF Page 161
Quick Reference

The whole quick reference has noting to do with the chapter. The chapter is about "A Consistent Look and Feel", yet the quick reference state stuff about "web parts" (Chapter 13).

Francois Nel  Nov 29, 2010 
PDF Page 161
Chapter 7 Quick Reference section

I just finished chapter seven, covering Master Pages, Themes and Skins. The "Quick Reference" section at the end of the chapter, which is supposed to quickly recap doing the things covered in the chapter, is all about WebParts and WebPart controls, whatever those are. I don't know because the book hasn't covered them yet.

Microsoft Press  May 22, 2013 
Printed Page 204
Step 4

Step 4 askes the user to drag hyperlinks to the page. However, the graphics on page 205 show that the author modified the asp:menu control to add navigation rather than using hyperlinks. This needs to be consistent.

Chris Brown  Mar 07, 2011 
Printed Page 246
Item 10 at the top of the page

Item 10 states to add a SiteMapPath control to the master page then apply the XML site map data source to the DataSource property of the SiteMapPath. I have looked everywhere and cannot find a DataSource property for the SiteMapPath!

How do I accomplich this?

Michael Reisenweber  May 19, 2012 
Printed Page 247
Step 2

The exercise states to open the Global.asax file, but what is needed is the Global.asax.cs file. The code does not go in a script but in the .cs file.

Chris Brown  Mar 09, 2011 
Printed Page 437
2nd Paragraph

The last sentence of the second paragraph reads "Deploying s as loose XAML files precludes adding event handlers and accompanying code."[sic] I think it was suppose to read "Deploying files as loose XAML files precludes adding event handlers and accompanying code."

Jim Gruszynski  May 19, 2011 
Printed Page 443
Step 7

Step 7 says "...set the StrokeThickness to 3..." the code for the step it has the StrokeThickness set to 2.

Jim Gruszynski  May 19, 2011 
Printed Page 444
Step 8

The instructions at step 8 of the WPF example are extremely confusing. It probably needs to be broken up into at least 2 steps.

Here is my suggestion:
- The first step (8 or 8a it you like) should be to add the references as described in the current first sentence of step 8.
- The second sentence "Run the page." should be removed.
- The second step (9 or 8b) should be to add the default.aspx file with a hyperlink and run it as described in the remainder of the current step 8.

Jim Gruszynski  May 19, 2011 
Printed Page 458
Step 9

I am unable to open the 'AspNetStepByStep4.mdf' database file (and thus not able to generate the helper classes) due to the following error I receive when trying to expand/open the file in the Server Explorer:
"The database 'C:\Samples\ASPNET_MVC2\MVCORAMA\MVCORAMA\App_Data\AspNetStepByStep4.mdf' cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported."
I am running MS Visual Studio 2010 Ultimate SP1, with .Net Framework 4.0.30319 SP1. I have a minimal installation of SQL Server 2008 R2 installed (it replaced SQL Server 2008, and I don't use/have any local databases installed) with SQL Server Management Studio 2008 R2 installed and working fine. I use SSMS 2008 R2 to remotely connect to our SQL Servers.
Any help you can give me in being able to use this (or a different version) database file for the MVC example would be greatly appreciated.
Thank you.

Anonymous  Feb 04, 2013 
Printed Page 459
Step 11

Step 11 of the MVC example has several problems: 1) It says "Visual Studio will name the view Index." No it won't, you have to give it that name to make it consistent with the rest of the code (VS names it something like ViewPage1). 2) There is a missing part of the instructions, before you hit OK on the Add View Dialog you need to select the "List" option from the "View Content" field or you will not get the code generated to display the records as shown in the code below.

Jim Gruszynski  May 20, 2011 
Printed Page 464
Step 5

In step 5 of the 2nd MVC example the "using MVCORama.Models;" statement was omitted from the code.

Jim Gruszynski  May 20, 2011 
Printed Page 519
Step 4

Step 4 starts "Open the Page.xaml file..." it should say "Open the MainPage.xaml file..."

Jim Gruszynski  May 25, 2011 
Printed Page 521
"Architecture" Section of Chapter 24

In the first paragraph of the section, at the end of the third sentence, it states "... (represented by the Application.xaml and Application.xaml.cs files)...". The author may have used a different version of Visual Studio than I did (I am using VS 2010 Professional) but the files generated by my IDE are named App.xaml and App.xaml.cs.

Jim Gruszynski  May 26, 2011 
Printed Page 580
Paragraph numbered 3

I have installed the code from the CD and have loaded the Project in chapter 26 called Deploy this Application.

Using the described steps in paragraph 3 I cannot find a menu entry for Configuration Manager. How do I open the Configuration Manager?

Michael Reisenweber  Jul 11, 2012