Errata

MCPD Self-Paced Training Kit (Exam 70-547): Designing and Developing Web-Based Applications Using the Microsoft® .NET Framework

Errata for MCPD Self-Paced Training Kit (Exam 70-547): Designing and Developing Web-Based Applications Using the Microsoft® .NET Framework

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

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

Version Location Description Submitted By Date submitted Date corrected
Printed
Page CD-ROM

Incorrect answer marked correct in the Practice Test
In the Electronic practice test included on the Companion CD, one of the questions is scored incorrectly. The question reads:



"You are developing an ASP.NET application that your company’s employees will use internally. Each employee will use a secured Windows XP workstation to access the application. Which of the following authentication strategies would be the easiest to implement and maintain?



Allow anonymous access

Forms-based authentication using an XML-based file to store the user name and password

Forms-based authentication using a back-end SQL database

Access control list (ACL) authentication using Windows challenge/response"



When the question is scored, "Allow anonymous access" is marked as correct. "Access control list (ACL) authentication using Windows challenge/response" should be marked correct instead.

Microsoft Press  Jul 13, 2010 
Printed
Page CD-ROM

Readiness Review Assessment "aren't" should be "are"
In the Readiness Review assessment Answer 3 to one of the questions uses "aren't" instead of "are".Change:What would you want to watch for when tracking page response times? (Choose all that apply.)



Answers:

1. Time it takes for the server to process the request

2. Time it takes for the client to process the request

3. Pages that aren't accessed frequently

4. How fast your Web application renders Web pagesTo:What would you want to watch for when tracking page response times? (Choose all that apply.)

Answers:1. Time it takes for the server to process the request2. Time it takes for the client to process the request3. Pages that are accessed frequently

4. How fast your Web application renders Web pages

Microsoft Press  Jul 13, 2010 
Other Digital Version
CD-ROM

File extensions for Chapter 4 code samples are incorrect Some of the code samples for the Chapter 4 exercises have an incorrect .xpsa extension. In order to use these files correctly, they should be renamed to .aspx. If the code samples are installed to the default location the following files are located in My DocumentsMicrosoft PressMCPD Self-Paced Training Kit Exam 70-547Chapter 04Lesson 1CS and in My DocumentsMicrosoft PressMCPD Self-Paced Training Kit Exam 70-547Chapter 04Lesson 1VB: Ch04_Intro.xpsa Ch04_MasterPage_Intro.xpsa Ch04_MasterPage_Terms.xpsa Ch04_TreeView_Intro.xpsa Ch04_TreeView_Terms.xpsa The extension .xpsa is incorrect, it should be .aspx. Please use the following directions to rename these files: 1. Using Windows Explorer navigate to the Chapter 4 VB or CS folder containing the invalid code sample files listed above. 2. Select one of the invalid code sample files listed above with the .xpsa file extension. 3. Click on File, then click on Rename. At this time the filename can be edited. 4. Change the filename extension from .xpsa to .aspx then press Enter. 5. Repeat steps 1 through 4 for the remaining code sample files that have the .xpsa file extension.

Microsoft Press  May 06, 2010 
Other Digital Version
CD-ROM

Readiness Review Assessment question answer structure incorrect On the Readiness Review Assessment, there is one question that incorrectly uses radio buttons for answer selection. The question should use checkboxes since there is more than one correct answer. The question reads (currently using radio buttons for answer selection): "Which of the following are characteristics of unit tests? (Choose all that apply.) A full set of unit tests results in the ability to do smoke (or regression) testing. Unit tests are useful for determining performance issues with your code. Unit tests help to document your code. Unit tests help to confirm the execution of your user interface." It should read (using checkboxes for answer selection): "Which of the following are characteristics of unit tests? (Choose all that apply.) A. A full set of unit tests results in the ability to do smoke (or regression) testing. B. Unit tests are useful for determining performance issues with your code. C. Unit tests help to document your code. D. Unit tests help to confirm the execution of your user interface." Answers A and C are correct.

Microsoft Press  May 06, 2010 
Printed
Page 63

"bit" should be "big" On page 63, the 10th sentence of the second paragraph uses the word "bit" instead of "big". Change: "The other objects in your ORM are sometimes bit players in the domain." To: "The other objects in your ORM are sometimes big players in the domain."

Microsoft Press  May 06, 2010 
Printed
Page 69

"Exipre" should be "Expire"
On page 69, the 6th line down in both code samples for VB and C# contains a misspelled word.



Change:



Cache.ExipreTo:



Cache.Expire

Microsoft Press  Jul 13, 2010 
Printed
Page 107

Missing parentheses On page 107, the fifth line of the C# code sample is missing some parentheses. Change: if (PreviousPage.GetType.ToString.Equals (" FromPage")To: if (PreviousPage.GetType().ToString().Equals (" FromPage"))

Microsoft Press  May 06, 2010 
Printed
Page 108

Incorrectly placed parentheses
On page 108, lines 8 and 14 of the C# code sample have parentheses in the wrong places.



On line 8, change:

postPage = PostingPage(this.PreviousPage);To:

postPage = (PostingPage)this.PreviousPage;On line 14, change:

txtSomeField = TextBox(postPage.FindControl("txtFieldName"));To:

txtSomeField = (TextBox)postPage.FindControl("txtFieldName");

Microsoft Press  Jul 13, 2010 
Printed
Page 120

ToString should be ToString() On page 120, six occurrences of ToString should be ToString(). On lines 6 and 7, change: TreeNode CollegeNode = new TreeNode (row.Item ("CollegeName").ToString, row.Item ("CollegeID").ToString);To: TreeNode CollegeNode = new TreeNode (row.Item ("CollegeName").ToString(), row.Item ("CollegeID").ToString());On lines 31 and 32, change: TreeNode DeptNode = new TreeNode (row.ItemArray ("DeptName").ToString, row.ItemArray ("DeptID").ToString);To: TreeNode DeptNode = new TreeNode (row.ItemArray ("DeptName").ToString(), row.ItemArray ("DeptID").ToString());On lines 49 and 50, change: TreeNode CourseNode = new TreeNode (row.ItemArray ("CourseName").ToString, row.ItemArray ("CourseID").ToString);To: TreeNode CourseNode = new TreeNode (row.ItemArray ("CourseName").ToString(), row.ItemArray ("CourseID").ToString());

Microsoft Press  May 06, 2010 
Printed
Page 125

path should be page
On page 125, in the first sentence after Figure 4-3, the word path is used in place of page.



Change:

"Placing a SiteMapPath control on your path is all that is required for it to display."



To:

"Placing a SiteMapPath control on your page is all that is required for it to display."

Microsoft Press  Jul 13, 2010 
Printed
Page 152

SqlClient.SqlCommand should be "New SqlClient.SqlCommand"
On page 152, line 11 of the VB code sample in step 2 is incorrect.



Change:

Dim cmd As SqlClient.SqlCommandTo:

Dim cmd As New SqlClient.SqlCommand

Microsoft Press  Jul 13, 2010 
Printed
Page 152

"& _ ;" should be "+" On page 152, the second line from the bottom is incorrect. Change: string sql = "INSERT INTO Rating (ContentID, RatingID) VALUES" & _ ;To: string sql = "INSERT INTO Rating (ContentID, RatingID) VALUES" +

Microsoft Press  May 06, 2010 
Printed
Page 153

cmd; should be "cmd= new SqlClient.SqlCommand(); On page 153, the first line is incorrect. Change: SqlClient.SqlCommand cmd;To: SqlClient.SqlCommand cmd = new SqlClient.SqlCommand();

Microsoft Press  May 06, 2010 
Printed
Page 213-215

langugae should be language
On pages 213-215, the code samples use the word "langugae" rather than "language".



In the first line of the code sample for step 1, change:

"<select id="selUIMode" langugae="javascript""



To:

In the first line of the code sample for step 3, change:

To:

On page 214, in the fourth line, change:

To:

On line 11, change:

To:

On page 215, on the fourth line, change:

To:

On line 11, change:

To:

Microsoft Press  Jul 13, 2010 
Printed
Page 307

inheritance information for the Friend keyword is partially incorrect On page 307, the Friend keyword in the inheritance description list contains incorrect information in regards to C#. The last two sentences in the description are incorrect for C# but are correct for Visual Basic. Change: "Classes declared as friend must be within another class. All classes declared at the namespace level must be public." To: "Classes declared as friend must be within another class and all classes declared at the namespace level must be public (for Visual Basic only)."

Microsoft Press  May 06, 2010 
Printed
Page 309

Overrides should be override for C#
On page 309, the last sentence of the second paragraph of the "Overriding and Overloading" section indicates the incorrect keyword for overrinding in C#.



Change:

"In Visual Basic and C#, you use the Overrides keyword (although it is not capitalized in C#) to indicate that a member is overriding another member of the same name in the base class."



To:

"In Visual Basic you use the Overrides keyword to indicate that a member is overriding another member of the same name in the base class. In C#, you use the override keyword to accomplish the same task."

Microsoft Press  Jul 13, 2010 
Printed
Page 318

Insufficient information regarding C# concept On page 318, the 4th sentence in the only paragraph on the page is missing key information regarding the "hiding by name" concept for C#. Change: "This is implemented in Visual Basic with the Shadows keyword and in C# by redeclaring the method as private." To: "This is implemented in Visual Basic with the Shadows keyword and in C# by redeclaring the method as private and applying the new keyword."

Microsoft Press  May 06, 2010 
Printed
Page 319

"new" qualifier missing from C# code sample
On page 319, the 10th line in the continuation of the C# code sample from page 318 is missing the "new" qualifier.



Change:

private decimal PerformCalculation(int count)To:

private new decimal PerformCalculation(int count)

Microsoft Press  Jul 13, 2010 
Printed
Page 325

Question 2 should be removed/disregarded On page 325, Question 2 is incorrect and is not in line with the information presented in the Chapter therefore it needs to be disregarded.

Microsoft Press  May 06, 2010 
Printed
Page 406


On page 406, the first line of the code sample in step 4 is missing a <.



Change:

healthMonitoring enabled="true" heartbeatInterval="10">To:

Microsoft Press  Jul 13, 2010 
Printed
Page 570

"e-mail" should be "network message" On page 570, Step 5 contains an incorrect notification option.Change: "5. On the Action tab, specify an action that will be performed such as sending an e-mail, writing an entry to the event log, or executing some program." To: "5. On the Action tab, specify an action that will be performed such as sending a network message, writing an entry to the event log, or executing some program."

Microsoft Press  May 06, 2010 
Printed
Page 574

"e-mail" should be "network message"
On page 574, Answer B of Question 3 contains an incorrect notification option.Change:

"B. Create an Alert within System Monitor that sends an e-mail directly to the administrators."To:

"B. Create an Alert within System Monitor that sends a network message directly to the administrators."

Microsoft Press  Jul 13, 2010 
Printed
Page 577

"Working set" is not a Memory object counter On page 577, the third bullet point under Memory Use titled "Working set" and its explanation can be disregarded and removed. Working set is not a Memory object counter.

Microsoft Press  May 06, 2010 
Printed
Page 582

"Working set" is not a Memory object counter
On page 582, the 4th bullet down in Lesson Summary incorrectly states that Working Set counters are part of the Memory object.Change:

"Available Mbytes, Pages/sec, and Working Set counters from the Memory object can be used to monitor the memory use on your servers."To:

"Available Mbytes and Pages/sec counters from the Memory object can be used to monitor the memory use on your servers."

Microsoft Press  Jul 13, 2010 
Printed
Page 598

Answer A to Question 2 should be correct On page 598, Answer A to Question 2 should be correct and a different explination given. Change: "2. Correct Answers: B and C A. Incorrect: The user interface should not be required to enforce data integrity. Allowing the data tier and the database to enforce the integrity ensures that the data is safe from any code." To: "2. Correct Answers: A, B and C A. Correct: The user interface should be required to enforce data integrity."

Microsoft Press  May 06, 2010 
Printed
Page 602

Incorrect answer to Question 2 of Lesson 1
On page 602, answer B to question 2 of Lesson 1 should be marked correct, and answer A should be marked incorrect.



Change:

"2. Correct Answer: A

A. Correct: The @Register directive is required only once, regardless of the number of times the user control is used on the page.

B. Incorrect: The @ Register directive for a user control contains a TagPrefix attribute, which associates a prefix with the user control. This prefix will be included in the opening tag of the user control element. It also contains a TagName attribute, which associates a name with the user control. This name will be included in the opening tag of the user control element. An Src attribute defines the virtual path to the user control file that you are including."



To:

"2. Correct Answer: B

A. Incorrect: The @Register directive is required only once, regardless of the number of times the user control is used on the page.

B. Correct: The @ Register directive for a user control contains a TagPrefix attribute, which associates a prefix with the user control. This prefix will be included in the opening tag of the user control element. It also contains a TagName attribute, which associates a name with the user control. This name will be included in the opening tag of the user control element. An Src attribute defines the virtual path to the user control file that you are including."

Microsoft Press  Jul 13, 2010 
Printed
Page 605

"CurrentCultureUI" should be "CurrentUICulture" On page 605, in Step 1 of Case Scenario 2 the control that is used is incorrect. Change: "1. The CurrentCultureUI control provides you with the capabilities necessary to expose localized text to users." To: "1. The CurrentUICulture control provides you with the capabilities necessary to expose localized text to users."

Microsoft Press  May 06, 2010 
Printed
Page 615

Answer to question 3 is partially incorrect
On page 615, the answer to question 3 in the middle of the page is partially incorrect..



Change:



"3. Correct Answer: C

A. Incorrect: Private methods are Overridable by default.

B. Incorrect: Public methods are NotOverridable by default.

C. Correct: If you are creating MustOverride methods or properties, the class must be inherited.

D. Incorrect: MustOverride methods contain only the declaration statement for a Sub, Function, or Property. In addition, there is no End Sub or End Function statement for methods."



To:



"3. Correct Answers: A, C, and D

A. Correct: Private methods are NotOverridable by default.

B. Incorrect: Public methods are NotOverridable by default.

C. Correct: If you are creating MustOverride methods or properties, the class must be inherited.

D. Correct: MustOverride methods contain only the declaration statement for a Sub, Function, or Property. In addition, there is no End Sub or End Function statement for methods."

Microsoft Press  Jul 13, 2010 
Printed
Page 635

"e-mail" should be "network message" On page 635, Answers B and C of Question 3 contain an incorrect notification option.Change: "B. Correct: You can create an alert that sends an e-mail when a certain counter threshold is exceeded or not reached. C. Incorrect: Although you can set up an alert to execute an executable, it would be easier to just send an e-mail directly, using the alert."To: "B. Correct: You can create an alert that sends a network message when a certain counter threshold is exceeded or not reached. C. Incorrect: Although you can set up an alert to execute an executable, it would be easier to just send a network message directly, using the alert." Microsoft Press is committed to providing informative and accurate books. All comments and corrections listed above are ready for inclusion in future printings of this book. If you have a later printing of this book, it may already contain most or all of the above corrections.

Microsoft Press  May 06, 2010