Join Jess Chadwick for an in-depth discussion in this video Error handling and diagnostics, part of Learning ASP.NET Core MVC.
- [Narrator] Now that I've shown you how to use…ASP.NET Core's middleware to execute server side logic…and serve static content, I'm going to get a little…paranoid for a bit and show you how to register…error handling logic to try and help salvage…your user's experience when something in your…application inevitably goes wrong.…To demonstrate an error, I'll just add a bit of code…to the configure method in the startup class…that throws an exception when the URL contains…the word: invalid.…Then I'll run the site and navigate to a URL like /invalid.…
Here I'm greeted by an incredibly helpful error message…containing all kinds of useful information…to help me figure out what went wrong with my application.…At the top, it shows me the error message and then…lower down I can click on various sections…of the stack trace and, if it's my code,…I can actually see that code right there in my browser.…In addition to the stack trace information,…the page also has several other tabs that allow me to see…other details of my request, including the query string…
- Building blocks of ASP.NET Core applications
- Creating a new project
- Responding to HTTP requests
- Serving static files
- Understanding the MVC pattern
- Handling requests with controllers
- Rendering HTML with Razor
- Rendering data, view markup, and view logic
- Creating HTML forms
- Validating form data
- Reading and writing from a database with Entity Framework
- Improving the user experience
- Exposing data with a web API
- Securing your ASP.NET application
Skill Level Intermediate
1. The Basics
2. The Model-View-Controller (MVC) Pattern
Understand routing4m 24s
3. Render HTML with Views
4. Work with Data
5. Improve User Experience with Ajax and Web APIs
6. Secure Your Application
Next steps1m 42s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.