Monodevelop has unhandled exception when trying to add an XML schema

Bug #612334 reported by Jim Campbell
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
monodevelop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: monodevelop

I experienced an unhandled exception in Monodevelop when trying to add an XML schema.

dpkg -l monodevelop
||/ Name Version Description
+++-===================-===================-======================================================
ii monodevelop 2.4+dfsg-1ubuntu1 Development Environment for GNOME

To recreate, just select Edit > Preferences > XML Schemas > Add

You'll then see an unhandled exception with the text below:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.XmlEditor.XmlEditorService.BrowseForSchemaFile () [0x00000] in <filename unknown>:0
  at MonoDevelop.XmlEditor.Gui.XmlSchemasPanelWidget.addRegisteredSchema (System.Object sender, System.EventArgs args) [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0

I did not experience this error with Monodevelop 2.2. Thanks for your help!

Revision history for this message
Mark Duncan (eattheapple) wrote :

I can confirm this also effects Monodevelop 2.4 in Ubuntu 10.10

Changed in monodevelop (Ubuntu):
status: New → Confirmed
Revision history for this message
Mark Duncan (eattheapple) wrote :

As a workaround, it seems as though manually copying schemas in to /usr/lib/monodevelop/AddIns/MonoDevelop.XmlEditor/schemas/ and then restarting MonoDevelop works.

Revision history for this message
Levi Bard (taktaktaktaktaktaktaktaktaktak) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.