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 6683827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:52:03+00:00 2026-05-26T04:52:03+00:00

At the moment I use EVENT VIEWER in Administrative Tool to see some nested

  • 0

At the moment I use EVENT VIEWER in Administrative Tool to see some nested Asp Errors details for some pages of my website locally.

At the moment I deploying my website on the Server where I have access only to IIS 7.5 and its Logs.

I would like to know if is possible see errors for my ASP.NET directly in IIS or in some other way. Unfortunately using my website I’m not able to see the details for my errors.

Thanks.

  • 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-05-26T04:52:04+00:00Added an answer on May 26, 2026 at 4:52 am

    we are using something like this in a small ASP.NET application we have:

    protected void Application_Error(object sender, EventArgs e)
    {
        // Code that runs when an unhandled error occurs
    
        try
        {
            var userName = "<USERNAME not available...>";
    
            if (HttpContext.Current != null && HttpContext.Current.User != null && HttpContext.Current.User.Identity != null)
            {
                userName = HttpContext.Current.User.Identity.Name;
            }
    
            Exception exc = Server.GetLastError();
    
            var logger = new IEMLogger();
    
            logger.Error(string.Format("Application_Error - user: {0}", userName), exc);
    
            // Clear the error from the server
            Server.ClearError();
        }
        catch (Exception /*exc*/)
        {
            // DOES NOTHING:
            // no recursive error reports in case the logging fails...
        }
    }
    

    this is using a very defensive approach checking also for context null, current user null and so on. the IEMLogger is our wrapper to LogçNet so we do not have dependencies of LogçNet spread all around…

    Edit: please notice that this Application_Error event handler in Global.asax is the last resort of exception handler you should have, this catches all unhandled exceptions but does NOT replace the try/catch blocks you should have anyway in your application classes. Have those try catch as needed in the code of your application and use the same approach with a logger class which logs the exceptions at the very places where exceptions are thrown… this depends on your overall approach to exception and error handling, then if you go for Log4Net, NLog or other loggers everything is really a detail…

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

Sidebar

Related Questions

I have two nested loop in XSL like this, at this moment I use
Is there any event I could use so I'd catch the moment when ShowMessage
I use C# Entity Framework and Asp.net Web Forms 4. At the moment I'm
So right now I'm bashing my head - at the moment we use an
At the moment when i use this, i have to re-launch the app to
At the moment I'm trying to figure out how use default and custom settings
I'm trying to use custom meta boxes in wordpress. My goal at the moment
I need to decide which configuration framework to use. At the moment I am
I'm using jRuby at the moment (version 1.6.5) on my local machine. rvm use
Our company builds custom Java EE web solutions. At the moment, we use standard

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.