Activities of "cstobler"

Ok, it seems like maybe in the past when I was getting the user friendly exception dialog, it was because I was using an AJAX request. Using try-catch in the razor page model should allow me to get close to what I need. Thanks.

Thanks for pointing that out. I do have that configured, but it is also failing in production as well (this error only arises when I throw a UserFriendlyException shown below):

Here is my OnApplicationInitialization method:

It is throwing the 500 error when it hits this line:

I didn't change anything here other than upgrading to Pro, so I think something must have gone awry (which wouldn't be surprising since I had other issues after upgrading). I don't think it should be throwing a 500 error when I throw a UserFriendlyException.

Would you mind spelling this out for me a bit more? Is this the ASPNETCORE_ENVIRONMENT variable, or another one? I tried experimenting with utilizing app.UseErrorPage() in dev rather than app.UserDeveloperExceptionPage(), and that didn't seem to do anything. It's very possible I am grossly misunderstanding how to go about this, but any advice would be appreciatd.

I don't see services.AddAbpMvcExceptionHandling(); in my WebModule.cs, so I was looking to add it, but I doesn't seem to be available to add under context.services in the ConfigureServices method. I think I am still missing something here.

If you need access to my project, it was emailed for a previous ticket: 9542.

When execution reaches my 'throw new UserFriendlyException("string")' line, it throws an actual exception rather than showing as a dialog as it used to do before i upgraded my project to Pro and .NET 9:

I assume there is some misconfiguration here, but I can't find it in any documentation online. Please show me how I can get back to having this display to the user in a dialog.

Thank you, the combination of following that pattern and setting my exceptions to only break on uncaught exceptions allowed me to load into my project.

I think the AI agent was supposed to reply but it hung and never did, so any help on this would be appreciated. Thanks!

Charlie

I just upgraded to Pro and also just upgraded to .NET 9. I went to run my Web project and ran into this: I had updated that line based on this documentation: https://abp.io/docs/latest/release-info/migration-guides/abp-9-0. The intellisense shows it as a nullable argument, so I'm not sure why it is throwing this error.

If you need to see my project, I uploaded it for another ticket (9542) via email.

Thanks in advance for any help you can provide,

Charlie

Thank you for the clarification. I ended up making a new database anyway since it was on master, but the thing that ended up working for me was to also delete the DbContextModelSnapshot.cs file, which then allowed the migration file to fill properly and that fixed the database issue as far as I can tell.

I am having another issue, but I think it is best suited to another ticket. Thanks again for your help!

Thanks for looking into this. I deleted all of the migrations, created a new one using the CLI, and the new migration was again empty: I'm not sure what is going on here. I can delete the databases if necessary, like I said, there is no permanent data on there that needs to persist. But I'm not sure how to go about this in a way that will result in a clean slate. I checked your documentation and the book, and they both say to just run DbMigrator to create a new database, which worked for me in the beginning but obviously isn't working now.

Charlie

Showing 1 to 10 of 13 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 11, 2025, 11:35