Errata: 9/8/2020

Thank you for purchasing ASP.NET Core in Action. Please post any errors, other than those listed below, in the book's Author Online Forum. We'll update this list as necessary. Thank you!



Page 15

First paragraph (continued sidebar),last sentence: "It would be possible to write a replacement web server and substitute if for Kestrel if you desired."

should be

"It would be possible to write a replacement web server and substitute it for Kestrel if you desired."

Pages 74 and 74

Line 3 of both listing 3.3 and 3.4, is

public class ConfigureServices(IServiceCollection services)

It should be:

public void ConfigureServices(IServiceCollection services)

Page 115

First sentence: “If an action method definition has method arguments, the additional values in the request are used to create the required parameters. If the action has no arguments, then the additional values will go unused.”

The words “parameters” and “arguments” should be swapped.

If an action method definition has method parameters, the additional values in the request are used to create the required arguments. If the action has no parameters, then the additional values will go unused.

Page 124

Final row: "Shows all the previous orders for customer with id=1"

should be

"Shows all the previous orders for customer with id=3"

Page 429, listing 14.10:

Replace the bold lines of code with the following:

var nameClaim = new Claim("FullName", model.Name); 
await _userManager.AddClaimAsync(user, nameClaim);