[confirm] Mediaportal config - Unhandled exception (1 Viewer)

Atomic7431

Portal Pro
June 17, 2011
497
71
Home Country
United Kingdom United Kingdom
Suddenly been faced with this message and now cant save any changes in the config and im getting the error message all the time now when entering the Configuration screen.

Not sure what logs to produce for this type of problem so please advise.

Code:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
 
************** Exception Text **************
System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing.
  at System.Xml.XmlTextReaderImpl.Throw(Exception e)
  at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
  at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
  at System.Xml.XmlTextReaderImpl.Read()
  at System.Xml.XmlTextReader.Read()
  at System.Xml.XmlReader.MoveToContent()
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSettings.Read8_Settings()
  --- End of inner exception stack trace ---
  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
  at MediaPortal.Player.DSP.Settings.LoadSettings()
  at MediaPortal.Player.DSP.Settings.get_Instance()
  at MediaPortal.Configuration.Sections.MusicDSP.LoadSettings()
  at MediaPortal.Configuration.SettingsForm.LoadSectionSettings(TreeNode currentNode)
  at MediaPortal.Configuration.SettingsForm.SettingsForm_Load(Object sender, EventArgs e)
  at System.Windows.Forms.Form.OnLoad(EventArgs e)
  at System.Windows.Forms.Form.OnCreateControl()
  at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
  at System.Windows.Forms.Control.CreateControl()
  at System.Windows.Forms.Control.WmShowWindow(Message& m)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
  at System.Windows.Forms.ContainerControl.WndProc(Message& m)
  at System.Windows.Forms.Form.WmShowWindow(Message& m)
  at System.Windows.Forms.Form.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 
 
************** Loaded Assemblies **************
mscorlib
	Assembly Version: 2.0.0.0
	Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
	CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Configuration
	Assembly Version: 1.3.100.0
	Win32 Version: 1.3.100.0
	CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Configuration.exe
----------------------------------------
System.Windows.Forms
	Assembly Version: 2.0.0.0
	Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
	Assembly Version: 2.0.0.0
	Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
	Assembly Version: 2.0.0.0
	Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Utils
	Assembly Version: 1.3.100.0
	Win32 Version: 1.3.100.0
	CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Utils.DLL
----------------------------------------
Core
	Assembly Version: 1.3.100.0
	Win32 Version: 1.3.100.0
	CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Core.DLL
----------------------------------------
Common.Utils
	Assembly Version: 1.3.100.0
	Win32 Version: 1.3.100.0
	CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Common.Utils.DLL
----------------------------------------
System.Xml
	Assembly Version: 2.0.0.0
	Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
log4net
	Assembly Version: 1.2.11.0
	Win32 Version: 1.2.11.0
	CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/log4net.DLL
----------------------------------------
System.Core
	Assembly Version: 3.5.0.0
	Win32 Version: 3.5.30729.5420 built by: Win7SP1
	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
	Assembly Version: 2.0.0.0
	Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
BassRegistration
	Assembly Version: 1.0.0.0
	Win32 Version: 1.0.0.0
	CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/BassRegistration.DLL
----------------------------------------
tlzg8pz_
	Assembly Version: 1.3.100.0
	Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.DirectX.Direct3D
	Assembly Version: 1.0.2902.0
	Win32 Version: 9.05.132.0000
	CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.Direct3D/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3D.dll
----------------------------------------
Microsoft.DirectX
	Assembly Version: 1.0.2902.0
	Win32 Version: 5.04.00.2904
	CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll
----------------------------------------
Bass.Net
	Assembly Version: 2.4.10.0
	Win32 Version: 2.4.10.0
	CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Bass.Net.DLL
----------------------------------------
Databases
	Assembly Version: 1.3.100.0
	Win32 Version: 1.3.100.0
	CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Databases.DLL
----------------------------------------
System.Data
	Assembly Version: 2.0.0.0
	Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
	CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
RemotePlugins
	Assembly Version: 1.3.100.0
	Win32 Version: 1.3.100.0
	CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/RemotePlugins.DLL
----------------------------------------
Microsoft.DirectX.DirectInput
	Assembly Version: 1.0.2902.0
	Win32 Version: 5.04.00.2904
	CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.DirectInput/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.DirectInput.dll
----------------------------------------
DirectShowLib
	Assembly Version: 2.0.0.0
	Win32 Version: 2.0.0.0
	CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/DirectShowLib.DLL
----------------------------------------
Accessibility
	Assembly Version: 2.0.0.0
	Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Runtime.Serialization.Formatters.Soap
	Assembly Version: 2.0.0.0
	Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/2.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll
----------------------------------------
TvLibrary.Interfaces
	Assembly Version: 1.3.100.0
	Win32 Version: 1.3.100.0
	CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/TvLibrary.Interfaces.DLL
----------------------------------------
yszpqit_
	Assembly Version: 1.3.100.0
	Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
 
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
 
For example:
 
<configuration>
	<system.windows.forms jitDebugging="true" />
</configuration>
 
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Capture.JPG[DOUBLEPOST=1370802941][/DOUBLEPOST]just noticed this in my config log

Code:
[2013-06-09 19:25:10,129] [Config ] [BassAudio] [INFO ] - BASS: Loaded 14 Audio Decoders.
[2013-06-09 19:25:10,131] [Config ] [BassAudio] [DEBUG] - BASS: Loading DSP plugins ...
[2013-06-09 19:25:10,132] [Config ] [BassAudio] [ERROR] - BASS: Initialize thread failed.  Reason: There is an error in XML document (0, 0).
 
Last edited:

Jay_UK

Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi there,

    If I was a guessing man, I'd say your mediaportal.xml file is corrupt.

    you could try and use the backup copy (mediaportal.xml.bak file)

    J.
     

    Atomic7431

    Portal Pro
    June 17, 2011
    497
    71
    Home Country
    United Kingdom United Kingdom
    just done that and the results are the same, even copied one from an image of the drive i have kept and still getting the error
     
    Last edited:

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,959
    1,270
    Saratov
    Home Country
    Russian Federation Russian Federation
    Try to open xml file in web browser i.e. in Chrome or at least in IE. It will validate your file and you can see where error is.
     

    Atomic7431

    Portal Pro
    June 17, 2011
    497
    71
    Home Country
    United Kingdom United Kingdom
    Try to open xml file in web browser i.e. in Chrome or at least in IE. It will validate your file and you can see where error is.


    i have replaced mine with a working xml version from a month ago and its still the same
     
    Last edited:

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,959
    1,270
    Saratov
    Home Country
    Russian Federation Russian Federation
    Well, your error doesn't look like it is working ;)
    Check that Madiaportal.xml is starting with
    XML:
    <?xml version="1.0" encoding="utf-8"?>
    <profile>
    and ending with
    XML:
    </profile>
    since "profile" is the root element which is probably missing
     

    Atomic7431

    Portal Pro
    June 17, 2011
    497
    71
    Home Country
    United Kingdom United Kingdom
    ok going to use my image from 3 weeks ago and go again as need this working asap, uploading logs in case they are of use for someone.
     

    Sigpi007

    Portal Pro
    November 14, 2012
    104
    38
    Chicago, IL
    Home Country
    United States of America United States of America
    I don't know if this is relevant... BUT... the MP configuration program seems to be looking for different versions of log4net. The MP 1.4 version upgrades the log4net.dll to 1.2.11 (whereas MP 1.3 used 1.2.10).

    - If you switch out log4net.dll (1.2.10) in the root MP program files directory and then start MPconfig, you get an error message saying it can't find log4net.dll version 1.2.11.
    - If you DON'T switch it out and use what came with MP 1.4a, then you can still open MPconfig, but once you click on "plugins" or try to save your config changes, you get an error saying it can't find log4net version 1.2.10.

    I checked the log4net config files and there doesn't seem to be any specification for which version is used. I also checked the config file for MPconfig as well as the config file for mediaportal itself... nothing. I think there is somewhere in the code where something wasn't updated.
     

    Users who are viewing this thread

    Top Bottom