Root Element is Missing

bfitzsimmons

31-05-2009 22:43:07

I tried searching the forum, but didn't find this anywhere else. I was having trouble with the program not renaming some of my shows, so I thought i'd start from scratch. I highlighted all my shows in the "My Shows" tab and hit the delete button. Thinking that i would re-add the ones i wanted one by one to verify that they work. When i did this, i had a list of things in <> brackets with the show id number and it said something like not in tvdb or something (sorry didn't take a screen shot). Anyway, i thought i'd wipe the slate clean so to speak and i uninstalled tvrename, restarted, then reinstalled same version (2.1.0). it started up ok, but when i went to "My SHows" tab and the Add window, picked the folder of my show, entered the name in the search box, and hit the Search button and it said it was searching thetvdb.com but then it threw an exception.

___________________________________________________________
Add/Edit Show

Unhandled exception has occurred in your application. if you click
continue, the application will ignore this error and attempt to
continue. if you click Quit, the application will close immediately.

Root Element is missing.

[Details] [Continue] [Quit]
___________________________________________________________

When i click the Details button i get the following information:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
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 TVRename.TheTVDB.ProcessTVDBResponse(Stream ms)
at TVRename.TheTVDB.Search(String text)
at TVRename.TheTVDBCodeFinder.bnGoSearch_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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.3082 (QFE.050727-3000)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TVRename
Assembly Version: 1.0.0.0
Win32 Version:
CodeBase: file:///C:/Program%20Files/TVRename/TVRename.exe
----------------------------------------
msvcm90
Assembly Version: 9.0.21022.8
Win32 Version: 9.00.21022.8
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375/msvcm90.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Deployment
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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.



Any help would be greatly appreciated. i love your program, but i'm stumped...

Cheers,
Brad

supernoman

01-06-2009 01:52:17

I started to get the same error. I'm not sure when it started but TVRename crashed on me so I restarted it. Since I didn't save recently, I was missing some shows that I previously has listed so I tried to re-add them. Now all uncached shows give me a Root Element is Missing error. Cached shows can be added just fine. I tried deleting and re-installing tvrename. I tried alpha6. I tried deleting all the TV rename config files and starting from scratch. I tried windows update. MS 2008 redistributable SP1. None of it helped. I didn't have any updates or changes to my system since it was working properly. I run this on my server that's on 24/7 that I make very few changes on.


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
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 TVRename.TheTVDB.ProcessTVDBResponse(Stream ms)
at TVRename.TheTVDB.Search(String text)
at TVRename.TheTVDBCodeFinder.bnGoSearch_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TVRename
Assembly Version: 1.0.0.0
Win32 Version:
CodeBase: file:///C:/Program%20Files%20(x86)/TVRename/TVRename.exe
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.1
Win32 Version: 9.00.30729.1
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6F74963E/msvcm90.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Deployment
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Ionic.Utils.Zip
Assembly Version: 1.5.2.1
Win32 Version: 1.5.2.1
CodeBase: file:///C:/Program%20Files%20(x86)/TVRename/Ionic.Utils.Zip.DLL
----------------------------------------
Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.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.

MadHorse

01-06-2009 05:21:19

I've installed tv rename 2.10 for the first time and i have the same problem.
Try with 2.1.1a6 and i have te same error.

sstteevvee

01-06-2009 23:20:05

Are these shows you are adding through "My Shows" and the "Add" button at the bottom? What are you entering for it to search for? I'll then try it here and see how it goes. Or, it is from the "Folder Monitor" tab? If it's the latter, there might be a strangely named folder that is upsetting tvrename. Can you email me (tvrename [at] tvrename.com) a directory listing of your media folder. e.g. from the command prompt do "dir /b s:\media > temp.txt", email me temp.txt, then delete temp.txt.

Try adding a new show from the "My Shows" tab, and telling it to search for the name "Fred" and see if that search works without crashing (it is ok for me, returning 10 results).

Other things to try to fix it are the "Tools->Flush Cache", or deleting TheTVDB.xml from your settings folder before starting TVRename.

i had a list of things in <> brackets with the show id number and it said something like not in tvdb or something
Thanks... I know of that bug. To fix it, try quitting and restarting, and/or doing a force-refresh on the show (right click, force refresh). If that fails, Tools->Flush Cache, then refresh. It is possible to get it to come right without having to delete, reinstall, or re-add the series again.

MadHorse

02-06-2009 00:22:42

Hello,
i don't know what is happened, i didn't change anything but today version 2.1.1a6 is working without problem.
If i get this error again i'll try to understand if there's something wrong in my files or folders.

Thank you.

ScoopD

03-06-2009 12:47:36

I would have a big guess that there was some sort of error on TVBD at that time. If you are using the app OK for weeks and then suddenly there is a glitch, it is more likely to do with the data source than the app.

bfitzsimmons

05-06-2009 20:10:00

as it turns out it must have been a TVDB issue, because as ScoopD suggests that seemed to be what was causing the problem. i apologize for raising the alarm when clearly it wasn't a problem with your great program. i'm running the latest 'stable' and it seems to be working just fine now.

now i get to go back and clean up my shows directory from scratch only adding the ones i have. but that's ok i learned a lot about the program by taking some time to search/read the forums lately.

thanks so much for writing such a great program and thanks to all who took the time to respond!

Cheers,
Brad