Solved

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

Posted on 2007-03-20
6
550 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 5

Accepted Solution

by:
jef06 earned 175 total points
ID: 18757405
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
ID: 18757481
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
ID: 18758265
Did you check the application log?
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

Author Comment

by:jamesrbarnes
ID: 18763342
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
ID: 18763481
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
ID: 18764988
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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

734 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