© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
dragzun

❔ Web application builder order

I have the following issue : I am working on an web application that uses Serilog. I have created a custom Global Exception Handling Middleware which I use to get more details regarding exceptions. Issue is, because of the order I am using for the configure methods from my builder, basically builder.ConfigureLogging is called before builder.ConfigurePipeline , which is the middleware, the exception is not being caught by the middleware, it gets treated by serilog. I cannot change the app order since some of them depend on each other to run. Sadly I cannot share code, I am wondering if anyone could have a suggestion regarding this issue based on what I've described. Thank you.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

service-oriented Web application
C#CC# / help
3mo ago
✅ ASP.NET 'web' application
C#CC# / help
2y ago
✅ ASP.NET CORE Web Application
C#CC# / help
15mo ago
✅ return RedirectToAction("Index", new { orderId = ordervar });why dose this only show new orderhow
C#CC# / help
3y ago