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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:28:14+00:00 2026-05-23T03:28:14+00:00

My application works great on all computers here that has Visual Studio installed, but

  • 0

My application works great on all computers here that has Visual Studio installed, but it does not work on the machine that does not have Visual Studio.

The application just crashes on start up with this message in the Event Viewer:

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException
Stack:
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[])
at IssueTrackingSystem.My.MyApplication.Main(System.String[])

I tested a simple application with just one button, same results.

Error

UPDATE:

New error

  • 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-23T03:28:15+00:00Added an answer on May 23, 2026 at 3:28 am

    You need to get the exception’s InnerException to really know what is going wrong. Project + Properties, Application tab, click the View Application Events button. In the upper left combobox above the editor window select “(MyApplication Events)”, in the right combobox select “Startup”.

    That adds the Startup event handler. Make it look similar to this:

        Private Sub MyApplication_Startup(sender As Object, e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
            AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf KaboomHandler
        End Sub
    
        Private Sub KaboomHandler(sender As Object, e As UnhandledExceptionEventArgs)
            MsgBox(e.ExceptionObject.ToString())
            Environment.Exit(1)
        End Sub
    

    You’ll now get a stack trace that includes the inner exception. That should be good enough to find the static constructor that bombs. Post the stack trace you see in your question if that doesn’t help.

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

Sidebar

Related Questions

In my Application.cfc, I have an onError function that works great for all errors
I have checked all posts here, but can't find a solution for me so
I have made an application that can render and save a given element. With
So I've got this nice little MVVM solution, and things work great. I've got
I have an application that pulls a list of the top places on flickr
I'm working at a company that uses SCCS internally for developing it's main application.
I am attempting to write a specialized onscreen keyboard (OSK) for an application I'm
I want to let the user customize the background of of my application and
I'm working on a .NET phone application where I have a list of items
I have 2 login controls on a web application one on default and one

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.