Solved

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

Posted on 2007-03-20
6
551 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
PowerShell Core for Advanced Linux Administrators

Understand advanced principals around Powershell Core with a focus on the Linux Administrator.  This course covers how to administer numerous environments across multiple platforms including Linux, Azure, AWS, and Google Cloud from a single shell instance.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

636 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