title | description | type | page_title | slug | position | tags | ticketid | res_type |
---|---|---|---|---|---|---|---|---|
Code examples in documentation do not compile |
Preview of the code examples in documentation does not work |
troubleshooting |
Code examples in documentation do not compile |
common-kb-code-examples-in-documentation-do-not-compile |
repl, code, example, snippet, documentation, throw, do not, work, compile |
1565701 |
kb |
Product | UI for Blazor |
I am trying to run the code snippets in the documentation but they do not compile. The Preview
tab of the examples throws an error.
Unhandled Exception: System.MissingMethodException: Method not found: Microsoft.Extensions.DependencyInjection.IServiceCollection
To solve this, clean the site data:
- Open your DevTools
- Go to
Application
tab - Select
Storage
- Click the
Clear site data
button - Refresh the page