Errata

Windows Communication Foundation 4 Step by Step

Errata for Windows Communication Foundation 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
Printed, PDF Page 213
Bullet 4

The code in bullet 4 should ready:


// Check that the specified product exists
f (ProductExists (productNumber, database))
{
// Calculate the sum of all quantities for the specified product
stockLevel = (from pi in database.ProductInventories
join p in database.Products
on pi.ProductID equals p.ProductID
where String.Compare (p.ProductNumber, productNumber) == 0
select (int) pi.Quantity).Sum ();
}
}

(The code inside the if block in the book is from GetProduct method. CurrentStockLevel is being modified in this bullet.)

Anonymous  Dec 10, 2013 
Printed, PDF Page 207
After bullet 10 (perhaps)

Type of error is an omission. Instructions should include a step for updating the source code in Program.cs file in the ProductsClient project to update the machine name in the following line of code:

proxy.ClientCredentials.Windows.ClientCredential.Domain = "LON-DEV-01";

to the reader's machine name. This should save the users a little bit of figuring out.

Anonymous  Dec 09, 2013