Solved

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

Posted on 2008-09-29
6
2,445 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
  • 3
  • 3
6 Comments
 
LVL 13

Expert Comment

by:TechTiger007
Comment Utility
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
Comment Utility
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
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:DBDoc
Comment Utility
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
Comment Utility
0
 

Accepted Solution

by:
DBDoc earned 0 total points
Comment Utility
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

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

Suggested Solutions

Title # Comments Views Activity
How to open/READ file from UNC path Shared Folder... 2 37
Total in textboxes 9 34
Trouble with References... 5 21
Create XML 5 30
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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

12 Experts available now in Live!

Get 1:1 Help Now