5

Closed

XML Error

description

Today i noticed that every time i search for a movie, i get "There is an error in XML document(8,8)".
 
The included .net sample application gives me the same error message, so i don't think my code is the problem.

file attachments

Closed Dec 7, 2011 at 4:53 PM by darick_c

comments

Flori27 wrote Dec 5, 2010 at 4:17 PM

I have the same problem since last week. Any solutions??

andrew3010 wrote Dec 5, 2010 at 10:08 PM

I too have the same problem from last week. There is any problem on film db online.

the_roggy wrote Jan 2, 2011 at 12:44 AM

Same problem here. Fixed it by replacing the properties for score, popularity and translated in class tmdbMovie by these:

<code>
    [XmlIgnore]
    public decimal? Score{ get; set; }
    [XmlElement("score")]
    public string ScoreAsString { get { return (Score.HasValue) ? Score.ToString() : null; } set { Score = !string.IsNullOrEmpty(value) ? decimal.Parse(value) : default(decimal?); } }

    [XmlIgnore]
    public decimal? Popularity { get; set; }
    [XmlElement("popularity")]
    public string PopularityAsString { get { return (Popularity.HasValue) ? Popularity.ToString() : null; } set { Popularity = !string.IsNullOrEmpty(value) ? decimal.Parse(value) : default(decimal?); } }

    [XmlIgnore]
    public bool? Translated { get; set; }
    [XmlElement("translated")]
    public string TranslatedAsString { get { return (Translated.HasValue) ? Translated.ToString() : null; } set { Translated = !string.IsNullOrEmpty(value) ? bool.Parse(value) : default(bool?); } }
</code>

MrWeiland wrote Feb 2, 2011 at 7:53 AM

The_Roggy fix does it, if you like a new dll contact me so i can send it to you or wait for update here on codeplex.

xardas wrote Feb 15, 2011 at 8:15 AM

How can we replace that code in a dll?

ksaleem wrote May 9, 2011 at 9:38 PM

try the 2 files attached.

Mang wrote Jun 7, 2012 at 6:59 PM

I would really really appreciate if someone could compile a new dll with the fix and send it to me ! (win32)

e m a i l : rata touillee @ yah oo.fr

Thanks !

darick_c wrote Jul 31, 2012 at 12:09 AM

Mang, are you using the latest code? This has been fixed since October 2011. If there are still problems can you post the movie title you are having problems with?

Thanks,
Darick