Solved

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

Posted on 2008-09-29
6
2,448 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
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

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…
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 video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

810 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