Solved

Tabbing Error in Silverlight

Posted on 2013-10-23
5
296 Views
Last Modified: 2013-12-28
I am not familiar at all with Silverlight but have to fix an issue with a program that if a user clicks on a particular tab on the screen they get the following error:

Line: 58
Error: Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message: System.NullReferenceException: Object reference not set to an instance of an object.
   at xx.URP.Presentation.Silverlight.URPServices.Actions.MonitorResult.Equals(Object obj)
   at System.Windows.Controls.ContentControl.OnContentChanged(IntPtr nativeTarget, CValue& oldContentValue, CValue& newContentValue)

Open in new window


The code does not break within Visual Studio during this error. Instead I get a window in IE that shows me this error. Anyone have any ideas as to what the problem could be? Browser is IE8, using VS 2010 and Silverlight 3.
0
Comment
Question by:mathew_s
  • 4
5 Comments
 
LVL 25

Expert Comment

by:apeter
ID: 39596653
Looks like you are trying to access an object which is not been instantiated. Can you please  place the oncontentchanged method code
0
 
LVL 1

Author Comment

by:mathew_s
ID: 39597278
I was able to debug the code by attaching the debugger. It seems to crash at the point that I have attached. It goes to Application_UnhandledException after the return. Do you know what needs to be changed?
Snaptshot.jpg
0
 
LVL 1

Author Comment

by:mathew_s
ID: 39615667
Searched the entire solution for an oncontentchanged, nothing came up. I think it is a built in method from the framework.
0
 
LVL 1

Accepted Solution

by:
mathew_s earned 0 total points
ID: 39736768
Problem ended up being the Silverlight version.
0
 
LVL 1

Author Closing Comment

by:mathew_s
ID: 39743318
The Silverlight version being used in IE ended up being the issue.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

758 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

19 Experts available now in Live!

Get 1:1 Help Now