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

  • Home
  • SEARCH
  • 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 248625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:21:31+00:00 2026-05-11T21:21:31+00:00

C# VS 2005. I have developed an application that run perfectly on my development

  • 0

C# VS 2005.

I have developed an application that run perfectly on my development machine when I install it. However, it doesn’t run on any of the clients machines.

I have tested with VMWare with a fresh install of windows, and still the application doesn’t run.

I have added logging to try and determine where the application is failing. My previous versions worked, and after a week of development I gave to the client and then experienced this problem.

I have entered logging at the start and end of the constructor and form_load event. The constructor runs ok. However, at the end of the constructor it doesn’t run in the form_load event as I have a log statement that should print out.

When the application runs it displays for a few seconds in task manager then fails to load.

I think this could be a very difficult problem to solve. So if anyone has experienced this before or could point me in the right direction to solve this problem.

The code in the form load event.

private void CATDialer_Load(object sender, EventArgs e)
{
    my_logger.Info("Start of form load event"); // Doesn't display this.
    .
    .
}

===== Edit static main ====

[STAThread]
    static void Main()
    {
        Application.SetCompatibleTextRenderingDefault(false);

        // Get the language and set this cultureUI in the statusdisplay that will
        // change the language for the whole program.
        string language = CATWinSIP.Properties.Settings.Default.Language;
        if (language == "th-TH")
        {
            StatusDisplay.StatusDisplay status_display = new StatusDisplay.StatusDisplay(true);
        }
        else if(language == "en-GB")
        {
            StatusDisplay.StatusDisplay status_display = new StatusDisplay.StatusDisplay(false);
        }
        try
        {
            Application.Run(new CATDialer());
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message);
        }

=== Constructor ===

public CATDialer()
{
    //Set the language for all the controls on the form. 
    //Has to be done before all components are initialized.
    //If not Thai language then must be using English.
    if (Settings.Default.Language == "th-TH")
    {
        Thread.CurrentThread.CurrentUICulture = new CultureInfo("th-TH");
    }
    else
    {
        Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-GB");
    }

    InitializeComponent();

    this.statusDisplay1.BalanceStatus = CATWinSIP_MsgStrings.BalanceStatus;
    this.statusDisplay1.RedialHistory = CATWinSIP_MsgStrings.RedialHistory;
    this.statusDisplay1.LoginStatus = CATWinSIP_MsgStrings.LoginSuccessful;

    // Enable logging
    XmlConfigurator.Configure();
    logger.Info("CATDialer Constructor(): XmlConfigurator.Configure() Loaded [ OK ]");
    //    MessageBox.Show("Balance Status: " + this.statusDisplay1.BalanceStatus);

    //Short cut menu.
    this.SetupShortCutMenu();

    this.fill_properties();

    logger.Debug("CATDialer Constructor(): Fill properties loaded [ OK ]");
}

—

Hello,

Thanks for all the advice.

I have problem with one of my class libraries I created that used a crypto stream.

I found the answer when I added this to my program.cs

The message box displayed the information for the failed assembly.

Thanks,

try
{
    Application.Run(new CATDialer());
}
catch (Exception ex)
{
    MessageBox.Show(ex.ToString());
} 
  • 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-11T21:21:31+00:00Added an answer on May 11, 2026 at 9:21 pm

    Have you checked on a different development machine? Are your systems running same version of the .net framework? Is the .net framework installed correctly on the remote system? Have you tested your application in a different environment?

    edit: have you tried spamming your log? Wrap the entire thing in a try catch and see what you can capture. Sometimes I found using the messagebox useful for this kind of logging (MessageBox.Show())

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

Sidebar

Related Questions

VS Studio 2005 I have developed an application that will need to access a
I have developed an application as my college project using Visual Studio 2005 and
We have a web application that runs on IIS using .NET 2.0 developed and
On my reporting application which is developed using SSRS 2005, I have a parameter
i have developed an activeX dll using visual studio 2005.when i run in ie
VS 2005 SP3 I have developed application and used the setup project to create
Visual Studio 2005 I have developed an application using C#. I have created an
I have inherited a VB6/Access application that we have developed and sold for many
I have developed a .NET desktop application which uses SQL Server 2005 SP3 Express.
Using SQL Server 2005 I have a query that gets child records from bundles

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.