Solved

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

Posted on 2008-09-29
6
2,446 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

912 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

22 Experts available now in Live!

Get 1:1 Help Now