Search This Blog

Friday, May 11, 2018

Improved diagnostics for ListView errors in Server Mode

From the Core - ListView shows blank rows or freezes in certain scenarios in Server Mode ticket:


In certain scenarios, a list view with DataAccessMode set to Server may show empty rows or operate slowly. This behavior is usually caused by exceptions thrown during data loading that are handled internally. Such situations can be diagnosed using the debugger (see What to do when the grid displays blank rows in Server Mode and ASPxGridView displays empty rows when bound via Server Mode).

Starting with v18.1, we improved the XAF built-in diagnostics for errors occurring in Server Mode data sources. Now, server-side errors (intercepted via the ServerExceptionThrown event) are written to the application log. In addition, when the log level is set to 4 (Verbose), errors reported via the InconsistencyDetected event are also written to the log. While the latter event doesn't always indicate a problem, the error message may be helpful in researching the cause of performance issues.



6 comments:

  1. Perfect - thank you Guys, so i can remove my custom code :)

    ReplyDelete
  2. Thanks for your feedback, Martin.
    By the way, do you have or need a similar error processing code for the Instant Feedback mode?

    ReplyDelete
  3. No - since we do not use Instant Feedback currently!

    ReplyDelete
    Replies
    1. Thanks, Man! BTW, many users reported that it worked faster for them.

      Delete
  4. thx Dennis - good to know. problem is we have lot of existig code which we would have to change/update to support the Instand Feedback Mode (View.CurrentObject)

    ReplyDelete
    Replies
    1. Got it (https://documentation.devexpress.com/eXpressAppFramework/DevExpress.ExpressApp.XafInstantFeedbackRecord.class). Hopefully, you will try it for new ListViews;-)

      Delete