1
Vote

Name cannot begin with the ' ' character, hexadecimal value 0x20.

description

Any idea why I'm getting this exception:
Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 78, position 36.

it's something to do with the AdControl (no issue when I comment the code out)

Here's the stack trace:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
at System.Xml.Linq.XDocument.Parse(String text)
at MC.Phone.Ads.Strategy.RemoteAdProviderStrategy.ParseXml(String xml)
at MC.Phone.Ads.Strategy.RemoteAdProviderStrategy.<>c__DisplayClass21.<ProvideNext>b__12(String xmlString)
at Microsoft.Phone.Reactive.AnonymousObserver1.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(T value)
at Microsoft.Phone.Reactive.AnonymousObservable1.AutoDetachObserver.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(T value)
at Microsoft.Phone.Reactive.Observable.<>c__DisplayClass2b62.<>c__DisplayClass2b8.<Select>b__2b5(TSource x)
at Microsoft.Phone.Reactive.AnonymousObserver
1.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
at Microsoft.Phone.Reactive.AnonymousObservable
1.AutoDetachObserver.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
at Microsoft.Phone.Reactive.AnonymousObserver
1.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
at Microsoft.Phone.Reactive.AnonymousObservable
1.AutoDetachObserver.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
at Microsoft.Phone.Reactive.AnonymousObserver
1.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
at Microsoft.Phone.Reactive.AnonymousObservable
1.AutoDetachObserver.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
at Microsoft.Phone.Reactive.AnonymousObserver
1.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
at Microsoft.Phone.Reactive.AnonymousObservable
1.AutoDetachObserver.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
at Microsoft.Phone.Reactive.Observable.<>c__DisplayClass2b6
2.<>c__DisplayClass2b8.<Select>b__2b5(TSource x)
at Microsoft.Phone.Reactive.AnonymousObserver1.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(T value)
at Microsoft.Phone.Reactive.AnonymousObservable1.AutoDetachObserver.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(T value)
at Microsoft.Phone.Reactive.Observable.<>c__DisplayClass2b62.<>c__DisplayClass2b8.<Select>b__2b5(TSource x)
at Microsoft.Phone.Reactive.AnonymousObserver
1.Next(T value)
at Microsoft.Phone.Reactive.AbstractObserver`1.OnNext(T value)
at MC.Phone.Ads.Rx.ObservableResource.<>c__DisplayClassa.<>c__DisplayClassc.<FromInternet>b__7(IAsyncResult iar)
at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClass1d.<InvokeGetResponseCallback>b__1b(Object state2)


It is for a Windows Phone 8 App.

comments

mkamonster wrote Oct 16, 2013 at 9:49 AM

Can you provide a url to the XML? Looks like there's something special about the contents of the file.