Errata: May 24, 2021The top left annotation in figure 2.10 should be: "The IHost is created in Program using the builder pattern, and the CreateDefaultBuilder and ConfigureWebHostDefaults helper methods."
In figure 2.16, the arrow to the top-right of the routing middleware block is pointing the wrong direction. It should be pointing top to bottom.
The Tip lists status codes in the wrong order. It should be "(400, 200, and 404, respectively)"
Listing 11.15 is using the wrong variable name. Instead of using builder, it should be:
config.AddUserSecrets();
The final paragraph on the page refers to the wrong class. It should be: The Controller base class implements IActionFilter and IAsyncActionFilter itself.
The title for listing 13.14 refers to the wrong class. It should be Overriding action filter methods directly on Controller.
Listing 13.14 derives from the wrong base class. It should be
public class HomeController : Controller
Listing 13.14 refers to the wrong base class in the first annotation. It should be: Derives from the Controller class.
The first paragraph refers to the wrong base class. It should be: The OnActionExecuting Controller method runs before any other action filters.
Figure 17.5 has a typo in the second annotation. It should be: Unhandled errors and exceptions that don't affect other requests.
The caption for figure 22.2 lists "configuration" twice. It should be "IHost provides features such as configuration, dependency injection, and logging",
Listing 23.19 is missing a using statement in the first line of the test method. It should be:
using var connection = new SqliteConnection("DataSource=:memory:");