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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:26:16+00:00 2026-05-16T18:26:16+00:00

While working on a vb.net application, in which exceptions were handled poorly. It was

  • 0

While working on a vb.net application, in which exceptions were handled poorly. It was a big pain. So an Idea flashed , that if it is possible to genearte a library or service or some sort of exe that will log all error of an application without writing a single line of code / minimal code at some global location in host application.
I know it sounds bit crazy but Windows Event Logger does the same. So i thought for the same. Let me make me more clear. Say I have an application abc.exe, with not a single try catch. I am facing lots of bug while using that app. Now instead of digging my head into the application source, I want to code another app that will run and log all unhandled exceptions of that app, including managed and com both.

So gurus are requested to help me out. I know ApplicationDomain is useful. I came across a guy name Rick or something similar over MSDN blog but i did’nt grab any more. So some easy source or part of code will be helpful. Please add some sample code with your answers.

It would be a great help.

SUMMARY

I want a application that will inject itself into any application , where the assembly of Injector is placed. That is If i have an application D:\xyz\myapp\abc.exe , if say i had the application as exe then if place it inside myapp folder then after the execution of abc.exe , universal my error logger application will start working and inject itself to the current application domain. Also tell me if it will be made multi threaded , if i create it as a service.

  • 1 1 Answer
  • 1 View
  • 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-16T18:26:16+00:00Added an answer on May 16, 2026 at 6:26 pm

    This MSDN page How to: Log Exceptions in Visual Basic exactly describes what you need. In summary, it describes:

    • How to use the Visual Basic My.Application.Log to log exceptions using .NET’s built in trace listeners.
    • How to register the UnhandledException Forms Application event in VB applications.
    • How to register Visual Basic’s FileLogTraceListener to log to the file “[User]\Application Data\[CompanyName]\[ProductName]\[ProductVersion][ApplicationName].log”.

    Here’s an example of an application file configuration that registers the VB FileLogTraceListener:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <system.diagnostics>
            <sources>
                <source name="DefaultSource" switchName="DefaultSwitch">
                    <listeners>
                        <add name="FileLog"/>
                    </listeners>
                </source>
            </sources>
            <switches>
                <add name="DefaultSwitch" value="Information" />
            </switches>
            <sharedListeners>
                <add name="FileLog"
                    type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" 
                    initializeData="FileLogWriter" />
            </sharedListeners>
        </system.diagnostics>
    </configuration>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a asp.net application which is working from last 2-3 years, it has
I'm working on an ASP.NET web application. There's a bill page which has two
I'm working on a quite big application that is in charge of doing real-time
Currently, I have a ASP.net 3.5 web application for which I currently am working
I'm working with VB.net. I’m having problems while I connect my application to my
While working on ASP.NET MVC3 application, by mistake I have added a Class library
Net::SSL is part of Crypt::SSLeay. While working on a bug report today, I was
All my questions in this topic related to asp.net 2.0 While working on some
I've been working with ASP.NET(WebForm) for a while, but new to ASP.NET MVC. From
Hi I have been working on asp.net for a while. I am wondering if

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.