Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with xml? #2

Open
kylezinter opened this issue May 21, 2013 · 2 comments
Open

Issue with xml? #2

kylezinter opened this issue May 21, 2013 · 2 comments

Comments

@kylezinter
Copy link

Hey there,

Not completely sure what is happening but this look like an awesome tool and am excited to try but running into this issue currently when trying to fun for the first time.

Is this just an issue with the example and I can just delete a file?

Kyle

Microsoft Windows Version 6.2.9200 2012 Microsoft Corporation. All rights reserved.

C:\Users\kyzinter>cd Downloads

C:\Users\kyzinter\Downloads>cd "graze-60-bin (1)"

C:\Users\kyzinter\Downloads\graze-60-bin (1)>graze.exe
System.AggregateException: One or more errors occurred. ---> System.Xml.XmlExcep
tion: Invalid character in the given encoding. Line 43, position 230.
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.InvalidCharRecovery(Int32& bytesCount, Int32&
charsCount)
at System.Xml.XmlTextReaderImpl.GetChars(Int32 maxCharsCount)
at System.Xml.XmlTextReaderImpl.ReadData()
at System.Xml.XmlTextReaderImpl.ParseCDataOrComment(XmlNodeType type, Int32&
outStartPos, Int32& outEndPos)
at System.Xml.XmlTextReaderImpl.ParseCDataOrComment(XmlNodeType type)
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlReader.ReadElementString()
at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadTextContentFromHel
per(XmlReader reader, String type, String context, Boolean preserveAttributeExte
nsions)
at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadContentFrom(XmlRea
der reader, SyndicationItem item)
at System.ServiceModel.Syndication.Atom10FeedFormatter.TryParseItemElementFro
m(XmlReader reader, SyndicationItem result)
at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadItemFrom(XmlReader
reader, SyndicationItem result, Uri feedBaseUri)
at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadItem(XmlReader rea
der, SyndicationFeed feed)
at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadItems(XmlReader re
ader, SyndicationFeed feed, Boolean& areAllItemsRead)
at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadFeedFrom(XmlReader
reader, SyndicationFeed result, Boolean isSourceFeed)
at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadFrom(XmlReader rea
der)
at System.ServiceModel.Syndication.SyndicationFeed.Load[TSyndicationFeed](Xml
Reader reader)
at graze.extra.rss.RssExtra.GetExtra(XElement element, Object currentModel) i
n o:\dev\projects\graze\src\extras\graze.extra.rss\RssExtra.cs:line 23
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite s
ite, T0 arg0, T1 arg1, T2 arg2)
at graze.Core.ProcessExtra(Object result, XElement element, IExtra extra)
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid4[T0,T1,T2,T3](CallSite
site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at graze.Core.<>c__DisplayClassc.b__a(XElement element)
at System.Threading.Tasks.Parallel.<>c__DisplayClass322.<PartitionerForEachW orker>b__30() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass10.<ExecuteSelfReplicating>b_ _f(Object param0) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationTo ken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](P artitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Actio n2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal,
Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable
1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState
, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithE verything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Par
allelOptions parallelOptions, Action1 body) at graze.Core.CreateModel(XDocument configuration, ExpandoObject startingMode l) at graze.Core.CreateSite(ExpandoObject startingModel) at graze.Core.Run(ExpandoObject startingModel) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site , T0 arg0, T1 arg1) at graze.Core.Run() at graze.Program.Main(String[] args) ---> (Inner Exception #0) System.Xml.XmlException: Invalid character in the give n encoding. Line 43, position 230. at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.InvalidCharRecovery(Int32& bytesCount, Int32& charsCount) at System.Xml.XmlTextReaderImpl.GetChars(Int32 maxCharsCount) at System.Xml.XmlTextReaderImpl.ReadData() at System.Xml.XmlTextReaderImpl.ParseCDataOrComment(XmlNodeType type, Int32& outStartPos, Int32& outEndPos) at System.Xml.XmlTextReaderImpl.ParseCDataOrComment(XmlNodeType type) at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlReader.ReadElementString() at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadTextContentFromHel per(XmlReader reader, String type, String context, Boolean preserveAttributeExte nsions) at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadContentFrom(XmlRea der reader, SyndicationItem item) at System.ServiceModel.Syndication.Atom10FeedFormatter.TryParseItemElementFro m(XmlReader reader, SyndicationItem result) at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadItemFrom(XmlReader reader, SyndicationItem result, Uri feedBaseUri) at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadItem(XmlReader rea der, SyndicationFeed feed) at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadItems(XmlReader re ader, SyndicationFeed feed, Boolean& areAllItemsRead) at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadFeedFrom(XmlReader reader, SyndicationFeed result, Boolean isSourceFeed) at System.ServiceModel.Syndication.Atom10FeedFormatter.ReadFrom(XmlReader rea der) at System.ServiceModel.Syndication.SyndicationFeed.Load[TSyndicationFeed](Xml Reader reader) at graze.extra.rss.RssExtra.GetExtra(XElement element, Object currentModel) i n o:\dev\projects\graze\src\extras\graze.extra.rss\RssExtra.cs:line 23 at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite s ite, T0 arg0, T1 arg1, T2 arg2) at graze.Core.ProcessExtra(Object result, XElement element, IExtra extra) at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid4[T0,T1,T2,T3](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) at graze.Core.<>c__DisplayClassc.<CreateModel>b__a(XElement element) at System.Threading.Tasks.Parallel.<>c__DisplayClass322.b__30()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass10.b_
_f(Object param0)<---

@ghost
Copy link

ghost commented May 31, 2013

I am also experiencing the same issue. The project src is also missing packages.config from core ({root}\graze\src\core\packages.config).

@DalSoft
Copy link

DalSoft commented Jun 10, 2013

Change \template\configuration.xml line 24 to a valid atom feed for example:

<Rss Url="http://mikaelkoskinen.net/atom">Blog</Rss>
To
<Rss Url="https://news.google.com/news/feeds?pz=1&amp;cf=all&amp;ned=uk&amp;hl=en&amp;output=atom">Blog</Rss>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants