2

Closed

XmlException - The 'meta' start tag on line 4 position 2 does not match the end tag of 'head'. Line 29, position 3.

description

The 'meta' start tag on line 4 position 2 does not match the end tag of 'head'. Line 29, position 3.

Class: System.Xml.XmlException

File: MC.Phone.Ads.Stregy.RemoteAdProviderStregy.ParseXml(String xml)

Stacktrace:

0at System.Xml.XmlTextReaderImpl.Throw(Exception e)
1 at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
2 at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
3 at System.Xml.XmlTextReaderImpl.ParseEndElement()
4 at System.Xml.XmlTextReaderImpl.ParseElementContent()
5 at System.Xml.XmlTextReaderImpl.Read()
6 at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
7 at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
8 at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
9 at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
10 at System.Xml.Linq.XDocument.Parse(String text)
11 at MC.Phone.Ads.Strategy.RemoteAdProviderStrategy.ParseXml(String xml)
12 at MC.Phone.Ads.Strategy.RemoteAdProviderStrategy.<>c__DisplayClass21.b__12(String xmlString)
13 at Microsoft.Phone.Reactive.AnonymousObserver1.Next(T value)
14 at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(T value)
15 at Microsoft.Phone.Reactive.AnonymousObservable1.AutoDetachObserver.Next(T value)
16 at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(T value)
17 at Microsoft.Phone.Reactive.Observable.<>c__DisplayClass2b62.<>c__DisplayClass2b8.
18 at Microsoft.Phone.Reactive.AnonymousObserver
1.Next(T value)
19 at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
20 at Microsoft.Phone.Reactive.AnonymousObservable
1.AutoDetachObserver.Next(T value)
21 at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
22 at System.Action
1.Invoke(T obj)
23 at Microsoft.Phone.Reactive.AnonymousObserver1.Next(T value)
24 at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(T value)
25 at Microsoft.Phone.Reactive.AnonymousObservable1.AutoDetachObserver.Next(T value)
26 at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(T value)
27 at System.Action1.Invoke(T obj)
28 at Microsoft.Phone.Reactive.AnonymousObserver
1.Next(T value)
29 at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
30 at Microsoft.Phone.Reactive.AnonymousObservable
1.AutoDetachObserver.Next(T value)
31 at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
32 at System.Action
1.Invoke(T obj)
33 at Microsoft.Phone.Reactive.AnonymousObserver1.Next(T value)
34 at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(T value)
35 at Microsoft.Phone.Reactive.AnonymousObservable1.AutoDetachObserver.Next(T value)
36 at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(T value)
37 at Microsoft.Phone.Reactive.Observable.<>c__DisplayClass2b62.<>c__DisplayClass2b8.
38 at Microsoft.Phone.Reactive.AnonymousObserver
1.Next(T value)
39 at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
40 at Microsoft.Phone.Reactive.AnonymousObservable
1.AutoDetachObserver.Next(T value)
41 at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(T value)
42 at Microsoft.Phone.Reactive.Observable.<>c__DisplayClass2b6
2.<>c__DisplayClass2b8.
43 at Microsoft.Phone.Reactive.AnonymousObserver1.Next(T value)
44 at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(T value)
45 at MC.Phone.Ads.Rx.ObservableResource.<>c__DisplayClassa.<>c__DisplayClassc.b__7(IAsyncResult iar)
46 at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClass1d.b__1b(Object state2)

file attachments

Closed Apr 3, 2013 at 7:16 PM by mkamonster
This is not something that's caused by the control.

comments

mkamonster wrote Dec 3, 2012 at 5:55 AM

Can you provide the url of the XML file that you try to get the content from?

Best,

Mark Monster

sayne wrote Dec 3, 2012 at 12:29 PM

Bevan wrote Dec 4, 2012 at 2:02 AM

HI Mark,

I am also experiencing this issue with my latest app release.

I have included the stack trace and a copy of the remote settings file.

The error details in my stacktrace also indicate a line that is outside of the file size in my xml file.

0 at System.Xml.XmlTextReaderImpl.Throw(Exception e)
1 at System.Xml.XmlTextReaderImpl.Throw(Int32 res, String resString, String[] args)
2 at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
3 at System.Xml.XmlTextReaderImpl.ParseEndElement()
4 at System.Xml.XmlTextReaderImpl.ParseElementContent()
5 at System.Xml.XmlTextReaderImpl.Read()
6 at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
7 at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
8 at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
9 at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
10 at MC.Phone.Ads.Strategy.RemoteAdProviderStrategy.ParseXml(String xml)
11 at MC.Phone.Ads.Strategy.RemoteAdProviderStrategy.<>c__DisplayClass21.b__12(String xmlString)
12 at Microsoft.Phone.Reactive.AnonymousObserver1.Next(String value)
13 at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(String value)
14 at Microsoft.Phone.Reactive.AnonymousObservable1.AutoDetachObserver.Next(String value)
15 at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(String value)
16 at Microsoft.Phone.Reactive.Observable.<>c__DisplayClass2782.<>c__DisplayClass27a.b__277(MemoryStreamWithOrigin x)
17 at Microsoft.Phone.Reactive.AnonymousObserver
1.Next(MemoryStreamWithOrigin value)
18 at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(MemoryStreamWithOrigin value)
19 at Microsoft.Phone.Reactive.AnonymousObservable
1.AutoDetachObserver.Next(MemoryStreamWithOrigin value)
20 at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(MemoryStreamWithOrigin value)
21 at Microsoft.Phone.Reactive.AnonymousObserver
1.Next(MemoryStreamWithOrigin value)
22 at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(MemoryStreamWithOrigin value)
23 at Microsoft.Phone.Reactive.AnonymousObservable
1.AutoDetachObserver.Next(MemoryStreamWithOrigin value)
24 at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(MemoryStreamWithOrigin value)
25 at Microsoft.Phone.Reactive.AnonymousObserver
1.Next(MemoryStreamWithOrigin value)
26 at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(MemoryStreamWithOrigin value)
27 at Microsoft.Phone.Reactive.AnonymousObservable
1.AutoDetachObserver.Next(MemoryStreamWithOrigin value)
28 at Microsoft.Phone.Reactive.AbstractObserver1.OnNext(MemoryStreamWithOrigin value)
29 at Microsoft.Phone.Reactive.Observable.<>c__DisplayClass278
2.<>c__DisplayClass27a.b__277(MemoryStream x)
30 at Microsoft.Phone.Reactive.AnonymousObserver1.Next(MemoryStream value)
31 at Microsoft.Phone.Reactive.AbstractObserver
1.OnNext(MemoryStream value)
32 at MC.Phone.Ads.Rx.ObservableResource.<>c__DisplayClass1.b__0(IObserver1 observer)
33 at MC.Phone.Ads.Rx.AnonymousObservable
1.Subscribe(IObserver1 observer)
34 at Microsoft.Phone.Reactive.ObservableExtensions.Subscribe[TSource](IObservable
1 source, Action1 onNext, Action1 onError, Action onCompleted)
35 at Microsoft.Phone.Reactive.Observable.<>c__DisplayClass2782.b__276(IObserver1 observer)
36 at Microsoft.Phone.Reactive.AnonymousObservable1.<>c__DisplayClass1.b__0()
37 at Microsoft.Phone.Reactive.CurrentThreadScheduler.EnsureTrampoline(Action action)
38 at Microsoft.Phone.Reactive.AnonymousObservable
1.Subscribe(IObserver1 observer)
39 at Microsoft.Phone.Reactive.Observable.<>c__DisplayClass1c3
2.<>c__DisplayClass1c5.b__1c2(Exception exception)
40 at Microsoft.Phone.Reactive.AnonymousObserver1.Error(Exception exception)
41 at Microsoft.Phone.Reactive.AbstractObserver
1.OnError(Exception exception)
42 at Microsoft.Phone.Reactive.AnonymousObservable1.AutoDetachObserver.Error(Exception exception)
43 at Microsoft.Phone.Reactive.AbstractObserver
1.OnError(Exception exception)
44 at Microsoft.Phone.Reactive.AnonymousObserver1.Error(Exception exception)
45 at Microsoft.Phone.Reactive.AbstractObserver
1.OnError(Exception exception)
46 at Microsoft.Phone.Reactive.AnonymousObservable1.AutoDetachObserver.Error(Exception exception)
47 at Microsoft.Phone.Reactive.AbstractObserver
1.OnError(Exception exception)
48 at Microsoft.Phone.Reactive.AnonymousObserver1.Error(Exception exception)
49 at Microsoft.Phone.Reactive.AbstractObserver
1.OnError(Exception exception)
50 at MC.Phone.Ads.Rx.ObservableResource.<>c__DisplayClassa.<>c__DisplayClassc.b__7(IAsyncResult iar)
51 at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClassa.b__8(Object state2)
52 at System.Threading.ThreadPool.WorkItem.WaitCallback_Context(Object state)
53 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
54 at System.Threading.ThreadPool.WorkItem.doWork(Object o)
55 at System.Threading.Timer.ring()

mkamonster wrote Dec 6, 2012 at 8:09 AM

Hmm, interesting have you tried putting it somewhere else? Dropbox and SkyDrive aren't meant for hosting files, they are just a cloud implementation for a harddisk.

sayne wrote Dec 7, 2012 at 1:57 PM

No, I didn't try that. I will do that now and let you know whether it helped.

sayne wrote Dec 21, 2012 at 5:27 PM

Hey,
So I tried it, I moved settings files and errors are still present. Although it seems that there is less of them.

I also noticed that I have some NullReferenceExceptions:

"Object reference not set to an instance of an object." in
MC.Phone.Ads.Stregy.RemoteAdProviderStregy.SelectNextRandomAdProvider(IObserver`1 observer, AdEventArgs adSelectionCause)

I use only AdDuplex, pubCenter and HouseAds.