Solved

Tabbing Error in Silverlight

Posted on 2013-10-23
5
299 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

23 Experts available now in Live!

Get 1:1 Help Now