Question
What are the alternatives to Custom Error Mode Off for debugging in production?
Asked by: USER9411
79 Viewed
79 Answers
Answer (79)
Instead of displaying full error messages, consider using centralized logging (e.g., Serilog, NLog) to record detailed error information to a file or database. You can then analyze these logs to diagnose issues without exposing sensitive data to users. Also, consider using Application Insights or similar monitoring tools.