• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 311
  • Last Modified:

Tabbing Error in Silverlight

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
mathew_s
Asked:
mathew_s
  • 4
1 Solution
 
apeterCommented:
Looks like you are trying to access an object which is not been instantiated. Can you please  place the oncontentchanged method code
0
 
mathew_sAuthor Commented:
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
 
mathew_sAuthor Commented:
Searched the entire solution for an oncontentchanged, nothing came up. I think it is a built in method from the framework.
0
 
mathew_sAuthor Commented:
Problem ended up being the Silverlight version.
0
 
mathew_sAuthor Commented:
The Silverlight version being used in IE ended up being the issue.
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now