[CLOSED] Developer Exception Page not working

  1. #1

    [CLOSED] Developer Exception Page not working

    How to reproduce:

    1. Create a new Ext.NET Core web application from a developer command prompt using the command 'dotnet new extnet'
    2. Change one of the pages (e.g. GridPanel.cshtml.cs) to throw an exception on page load
    3. Press F5 to run the application in developer mode and navigate to the page that throws the exception
    4. Check the server response. A 500 error will be returned with no page output.


    Contrast this with creating a new empty Razor Pages app via the command 'dotnet new webapp' and throwing an exception on the loading of a page. The developer exception page will be returned to the user.

    Is this a known issue with Ext.NET v7?

    Thanks

    Paul
    Last edited by fabricio.murta; Jul 19, 2021 at 1:17 PM.
  2. #2
    Hello Paul!

    Yes, we internally noticed this problem but at the time it seemed the benefit of live reload outstaged this side effect, which may not really have been a good choice. This is not really an Ext.NET issue, but live reload library it uses. The way they inject code to the page makes it so it does not handle exceptions, and simply outputs nothing in case there is one. Simply disabling live reload enables proper exception display. You want to comment out Startup.cs lines 61 and 74:

    61: //services.AddLiveReload();
    74: //app.UseLiveReload();
    We've created issue #1861 to track this problem and we will post a follow-up here as soon as the problem is fixed in the template or library (would require at least a library version update from the template).

    Hope this helps!
    Last edited by fabricio.murta; Jul 10, 2021 at 2:56 AM.
  3. #3
    Thanks, removing Live Reload fixed it
  4. #4
    Oh, glad it helped, and thanks for the feedback!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 15
    Last Post: Apr 27, 2017, 2:56 AM
  2. Replies: 3
    Last Post: Nov 19, 2014, 5:46 AM
  3. Replies: 0
    Last Post: Oct 07, 2014, 8:06 AM
  4. Replies: 6
    Last Post: Feb 28, 2014, 2:57 AM
  5. Replies: 10
    Last Post: Nov 04, 2010, 3:24 PM

Posting Permissions