Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8809785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:57:48+00:00 2026-06-14T02:57:48+00:00

Sometimes exceptions occur in my ASP .NET MVC 2 application. ASP .NET shows standard

  • 0

Sometimes exceptions occur in my ASP .NET MVC 2 application.
ASP .NET shows standard error page to user. Programmer doesnt have any information that such exception occurs.

How to log those exceptions to application log table in PostgreSql database.
There is table logfile in PostgreSql database where application writes log info. How to catch those exceptions and write to log file. It is ok to show asp .net standard error page to user but exceptions needs to be logged also.
Only if excepton occurs during exception logging, exception should not logged.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:57:49+00:00Added an answer on June 14, 2026 at 2:57 am

    I suggest using ELMAH for logging uncaught exceptions.

    There are nuget packages for it – certainly for SQL Server, though it shouldn’t be difficult to use that as a base to log to postgres if there isn’t a package already.

    Update: found this (ELMAH on PostgreSQL).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET application where one of the pages hosts a 3rd party
We're facing a sever timeout error on NopCommerce - ASP.net MVC3 web application. The
I have built a Library project (DLL) in .NET. And sometimes I use the
I have a WCF application that sometimes performs long running queries. I have created
I have a simple ASP.NET hosted WCF Service that has several methods that all
I have a windows service application, running under WinXPe, which sometimes fails with an
I am coding up an Android app and sometimes exceptions occur. So while I
Background : I have a .Net 3.5 WPF Prism-based application running on Windows XP
Java's checked exceptions sometimes force you to catch a checked exception that you believe
Exceptions are wonderful things, but I sometimes worry that I throw too many. Consider

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.