Open Israel4Ever opened 9 years ago
I got that error as well. Here is my stack trace if it helps.
Unhandled exception. System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at CsQuery.HtmlParser.HtmlData.TokenName(UInt16 tokenId)
at CsQuery.Implementation.DomElement.get_ClassName()
at CsQuery.Implementation.DomElement.<AttributesCollection>d__38.MoveNext()
at CsQuery.Output.FormatDefault.RenderElementInternal(IDomObject element, TextWriter writer, Boolean includeChildren)
at CsQuery.Output.FormatDefault.RenderStack(TextWriter writer)
at CsQuery.Output.FormatDefault.Render(IDomObject node)
at "myInternalCall CQ.Render()"
Hi, I'm getting this Exception while calling the "Render()" method:
Stack trace:
This is my code lines:
It's seems impossible to repro this issue. Tried few times with same URL. Even when it's happen, I'm change the "next code line" (next instruction pointer) to the "Render()" code line agian - and now it's working.
My code is running with Multi-Threading. I'm pretty sure that this making problems...
How I can fix this?
Thank you.