Click here to Skip to main content
15,888,065 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I know there is a error handling middleware by default registered in the Startup.cs file. But my question is around what is the recommended approach for error handling in below two scenarios

Scenario 1:
1. Exception occurring in the Startup file before registering the error middleware.

Scenario 2:
1. Exception that occurs on the view. For Eg: You try to access a property of a model in the view but if the model is null. In such cases how error handling should be done.

Thanks..
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900