Caught an exception - System.MissingMethodException: Default constructor not found for type Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.ClassReference. (in `mscorlib')

Bug #990584 reported by typo
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
banshee (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Won't Fix
Undecided
Unassigned
mono-upnp (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Won't Fix
Undecided
Unassigned

Bug Description

[24 Warn 17:38:41.927] Caught an exception - System.MissingMethodException: Default constructor not found for type Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.ClassReference. (in `mscorlib')
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0
  at Mono.Upnp.Xml.Compilation.DelegateDeserializationCompiler+<CreateDeserializer>c__AnonStoreyD.<>m__11 (Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0
  at Mono.Upnp.Xml.Compilation.DelegateDeserializationCompiler+<CreateItemDeserializer>c__AnonStorey1C.<>m__2F (System.Object obj, Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0
  at Mono.Upnp.Xml.Compilation.DelegateDeserializationCompiler+<CreateArrayItemElementDeserializer>c__AnonStorey1E.<>m__31 (System.Object obj, Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0
  at Mono.Upnp.Xml.Compilation.DelegateDeserializationCompiler+<CreateElementAutoDeserializer>c__AnonStorey12.<>m__1A (System.Object obj, Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0
  at Mono.Upnp.Xml.XmlDeserializer.AutoDeserializeElement[Container] (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container obj, Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0
  at Mono.Upnp.Xml.XmlDeserializationContext.AutoDeserializeElement[Container] (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container obj) [0x00000] in <filename unknown>:0
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container.DeserializeElement (Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0
  at Mono.Upnp.Xml.XmlDeserializable.Mono.Upnp.Xml.IXmlDeserializable.DeserializeElement (Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0
  at Mono.Upnp.Xml.Compilation.DelegateDeserializationCompiler.<CreateSubElementDeserializer>m__18 (System.Object obj, Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0
  at Mono.Upnp.Xml.Compilation.DelegateDeserializationCompiler+<CreateElementDeserializer>c__AnonStorey11.<>m__17 (System.Object obj, Mono.Upnp.Xml.XmlDeserializationContext context, Int32 depth) [0x00000] in <filename unknown>:0
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. (in `mscorlib')
  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 Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory+<Deserializers>c__Iterator5`1[Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container].<>m__51 (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory+<Deserialize>c__Iterator6`1[Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container].MoveNext () [0x00000] in <filename unknown>:0
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory.GetObject[Container] (System.String id) [0x00000] in <filename unknown>:0
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory.GetRootObject () [0x00000] in <filename unknown>:0
  at Banshee.UPnPClient.UPnPServerSource.Parse (Mono.Upnp.Device device, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.ContentDirectoryController content_directory) [0x00000] in <filename unknown>:0

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: banshee 2.4.0-2ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Sat Apr 28 17:39:03 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
SourcePackage: banshee
UpgradeStatus: Upgraded to precise on 2012-04-17 (10 days ago)

Revision history for this message
typo (gnomeuser8) wrote :
Revision history for this message
Frederik Hahne (atomfrede) wrote :

Same problem here (on precise). Not sure if it is Banshee's fault or if the Twonky Server of my QNap NAS is configured wrong.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in banshee (Ubuntu):
status: New → Confirmed
Revision history for this message
Chow Loong Jin (hyperair) wrote :

Looks like a bug in Mono.Upnp rather than Banshee.

affects: banshee (Ubuntu) → mono-upnp (Ubuntu)
Revision history for this message
Chow Loong Jin (hyperair) wrote :
Changed in mono-upnp (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Chow Loong Jin (hyperair) wrote :

Fixed in 0.1.2-1

Changed in mono-upnp (Ubuntu):
status: Fix Committed → Fix Released
Changed in mono-upnp (Ubuntu Precise):
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in banshee (Ubuntu Precise):
status: New → Confirmed
Changed in banshee (Ubuntu):
status: New → Confirmed
Changed in banshee (Ubuntu):
status: Confirmed → Fix Released
Changed in banshee (Ubuntu Precise):
status: Confirmed → In Progress
Revision history for this message
typo (gnomeuser8) wrote :

Workaround:

1. Rename the "~/.config/banshee-1/" directory to "~/.config/banshee-1-mydata" (for example)
2. Make a backup of your "~/.config/banshee-1-mydata/addin-db-001/config.xml", e.g. as "config_old.xml"
3. Replace "~/.config/banshee-1-mydata/addin-db-001/config.xml" with a fresh "~/.config/banshee-1/addin-db-001/config.xml"
4. Delete "~/.config/banshee-1/"
5. Rename the "~/.config/banshee-1-mydata" directory to "~/.config/banshee-1/"

Revision history for this message
D.Schäfer (trash4you) wrote :

@typo

The "Workaround" dont work. The Symbols still gray and the same error appears when you start Banshee with debug.

Revision history for this message
Matej Moško (gnaag) wrote :

This is still an issue 2 years later. All media servers are greyed out in UPNP section. Is there anything going to happen soon?

Revision history for this message
Steve Langasek (vorlon) wrote :

The Precise Pangolin has reached end of life, so this bug will not be fixed for that release

Changed in mono-upnp (Ubuntu Precise):
status: In Progress → Won't Fix
Changed in banshee (Ubuntu Precise):
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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