Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2008-09-29
6
Medium Priority
?
2,460 Views
Last Modified: 2013-11-25
We have a vb.Net 2005 application with Crystal Reports R2 that had been working fine for a long time.  All of a sudden some of our users get the message that our application "has encountered a problem and needs to close.".  We've been chasing our tails trying to find coding issues, but given that it is working without error on other machines I'm thinking/hoping it is a machine specific issue.  

Any and all help is appreciated...
0
Comment
Question by:DBDoc
[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
  • 3
  • 3
6 Comments
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22598857
Can you check your application logs (if any) and Event viewer to find if there is any error logged?
Also make a note of the softwares that are installed /uninstalled recently that could affect your application.
0
 

Author Comment

by:DBDoc
ID: 22599318
No new programs were installed; it just suddenly happened. I'm attached a screen shot of the event viewer
Davevic-Error.PNG
0
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22607377
Your event says that your application has encountered a System.NullReferenceException. It is trying to access an object which is null. Most probably some external object. Please add a conditional check after each object creation to make sure that the reference really has got an object. something like this so that you can catch the culprit. If you have any exception log please have a look at it to find if there is any stack trace logged after this exception

MyClass obj  = new MyClass();
if(obj == null)
   LogMessage("obj is null");
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:DBDoc
ID: 22616484
Still no joy;  I put this in everywhere I could think of and still get the error shown below.

Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date:  10/1/2008
Time:  12:31:05 PM
User:  N/A
Computer: D8L5DQF1
Description:
EventType clr20r3, P1 davevic.exe, P2 2.3.0.12, P3 48e39e75, P4 system.windows.forms, P5 2.0.0.0, P6 471ebf68, P7 1a17, P8 0, P9 system.nullreferenceexception, P10 NIL.
 
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 63 00 6c 00 72 00 32 00   c.l.r.2.
0008: 30 00 72 00 33 00 2c 00   0.r.3.,.
0010: 20 00 64 00 61 00 76 00    .d.a.v.
0018: 65 00 76 00 69 00 63 00   e.v.i.c.
0020: 2e 00 65 00 78 00 65 00   ..e.x.e.
0028: 2c 00 20 00 32 00 2e 00   ,. .2...
0030: 33 00 2e 00 30 00 2e 00   3...0...
0038: 31 00 32 00 2c 00 20 00   1.2.,. .
0040: 34 00 38 00 65 00 33 00   4.8.e.3.
0048: 39 00 65 00 37 00 35 00   9.e.7.5.
0050: 2c 00 20 00 73 00 79 00   ,. .s.y.
0058: 73 00 74 00 65 00 6d 00   s.t.e.m.
0060: 2e 00 77 00 69 00 6e 00   ..w.i.n.
0068: 64 00 6f 00 77 00 73 00   d.o.w.s.
0070: 2e 00 66 00 6f 00 72 00   ..f.o.r.
0078: 6d 00 73 00 2c 00 20 00   m.s.,. .
0080: 32 00 2e 00 30 00 2e 00   2...0...
0088: 30 00 2e 00 30 00 2c 00   0...0.,.
0090: 20 00 34 00 37 00 31 00    .4.7.1.
0098: 65 00 62 00 66 00 36 00   e.b.f.6.
00a0: 38 00 2c 00 20 00 31 00   8.,. .1.
00a8: 61 00 31 00 37 00 2c 00   a.1.7.,.
00b0: 20 00 30 00 2c 00 20 00    .0.,. .
00b8: 73 00 79 00 73 00 74 00   s.y.s.t.
00c0: 65 00 6d 00 2e 00 6e 00   e.m...n.
00c8: 75 00 6c 00 6c 00 72 00   u.l.l.r.
00d0: 65 00 66 00 65 00 72 00   e.f.e.r.
00d8: 65 00 6e 00 63 00 65 00   e.n.c.e.
00e0: 65 00 78 00 63 00 65 00   e.x.c.e.
00e8: 70 00 74 00 69 00 6f 00   p.t.i.o.
00f0: 6e 00 20 00 4e 00 49 00   n. .N.I.
00f8: 4c 00 0d 00 0a 00         L.....  
0
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22627471
0
 

Accepted Solution

by:
DBDoc earned 0 total points
ID: 22641510
I found a solution doing research.  It's not pretty, but it worked. Modify the app.config with the following code that was suggested in another solution;

<runtime>
<legacyUnhandledExceptionPolicy enabled="1" />
</runtime>

This takes care of the problem.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

618 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