Starts in:
0 DAY
21 HRS
13 MIN
55 SEC
Starts in:
0 D
21 H
13 M
55 S
Open Closed

Asp.Net mvc app is swallowing exceptions. #1501


User avatar
0
VivekKoppula created

I created an asp.net mvc web app using abp suite with the following options.

Template Type: Application Template UI Framework: MVC Database provider: Entity Framework Core Database management system: SQLServer Public web site: Not checked Seperate tenant schema: Not checked Tiered: Not checked

Whenever an exception is thrown, it simply swallows it. Is there any setting that I am missing?

In contrast to this, ealier a few months back, I created an angular app with Abp Community, and whenever the code throws and exception, the UI shows a friendly message.

Is there any setting that I am missing in the asp.net mvc app?

The options choosen when creating asp.net mvc app with Abp suite are as follows.


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I think you can try throw a UserFriendlyException, see https://docs.abp.io/en/abp/latest/Exception-Handling#user-friendly-exception

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06