Solved

VB.NET App runs on some computers and not others.

Posted on 2007-03-20
6
544 Views
Last Modified: 2013-11-07
I have written a VB.net 2005 app.  It installs and runs on some computers but on others it returns the following error message immediately:

WindowsApplication1 has encountered a problem and needs to close. We are sorry for the inconvenience.

This tells me nothing.  Is there a way to find out where the conflict is?  I have Try-Catch statements on everything but it isn't getting that far.
0
Comment
Question by:jamesrbarnes
6 Comments
 
LVL 5

Accepted Solution

by:
jef06 earned 175 total points
Comment Utility
We need more information, try to log error you can use Log4net very easy to use.

You can try to catch the ThreadException and log the exception, in the Program class.

Here in c#

Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);
void Application_ThreadException(object sender, ThreadExceptionEventArgs e)
        {
            Log.LogError("Application_ThreadException", e.Exception);
        }
0
 
LVL 10

Assisted Solution

by:ericwong27
ericwong27 earned 175 total points
Comment Utility
Try to run that application with administrator credentials first. Probably due to restricts access on some PC.
0
 
LVL 6

Assisted Solution

by:Jon_Raymond
Jon_Raymond earned 150 total points
Comment Utility
Did you check the application log?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:jamesrbarnes
Comment Utility
Jon Raymond,

I am not familiar with the application log.  Can you tell me what I am looking for?

Jim
0
 
LVL 5

Expert Comment

by:jef06
Comment Utility
A log help you trace information, to know what is happening in your program. look at http://logging.apache.org/log4net/ and setup that up. Then you will be able to see what is wrong.
0
 
LVL 6

Expert Comment

by:Jon_Raymond
Comment Utility
On a Windows OS go to administration tools and look for EVENT VIEWER. There are numerous logs there. Check the application log and system log
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now