Solved

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

Posted on 2008-09-29
6
2,452 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
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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