FileNotFoundException: Could not load file or assembly 'ActiproSoftware.SyntaxEditor.Net20
Some days ago I started getting this message on "query.dump()" and it seems to me it happens randomly and for no apparent reason: http://i.imgur.com/EYi1rLb.png
Running the same simple query from command prompt, through "lprun" I get this message:
Running the same simple query from command prompt, through "lprun" I get this message:
What could be the reason for this behavior?
FileNotFoundException: Could not load file or assembly 'LINQPad.Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=21353812cd2a2db5' or one of its dependencies. The system cannot find the file specified.
at LINQPad.ObjectGraph.Formatters.TextOutputWriter.NodeToText(ObjectNode node)
at LINQPad.ObjectGraph.Formatters.TextOutputWriter.FormatObject(Object value, String heading, Nullable`1 maxDepth, TimeSpan& formattingTime)
at LINQPad.ObjectGraph.Formatters.OutputWriter.WriteObject(Object value, String heading, Nullable`1 maxDepth)
at LINQPad.ObjectGraph.Formatters.OutputWriter.WriteLineObject(Object value, String heading, Nullable`1 maxDepth)
at LINQPad.Extensions.Dump[T](T o, String description, Nullable`1 depth, Boolean toDataGrid)
at LINQPad.Extensions.Dump[T](T o, String description, Nullable`1 depth)
at LINQPad.Extensions.Dump[T](T o)
at UserQuery in C:\Users\klo\AppData\Local\Temp\LINQPad\_jvhlumvp\query_wekown.cs:line 32
Comments
It's simple query on personal data.
Copy/Paste:
This should dump XML representation of XDocument object AFAIK.
If instead `xdoc.Dump();` I use `Console.WriteLine(xdoc);` I don't get this error but just text dump of XML object, instead hierarchical rendering ala IE.
XmlException: There are multiple root elements. Line 26, position 2.
This is because the HTML returned by that URI indeed has two root elements. Following the closing html tag, there's the following:
if(window.mw){
mw.config.set({"wgBackendResponseTime":37,"wgHostname":"mw1138"});
}
What happens when you run the following:
http://share.linqpad.net/qipdab.linq
Let me just say that you should not get HTML response from my example URL. It should return XML. Url should be
http://en.wikipedia.org/w/api.php?action=query&format=xml&titles=Main%20page
, but this forum board escapes to HTML/XML entities, so if you just copy and paste from the code box, without replacing&
entity in URL which was used as parameter separator, then you'll get HTML error response.So I would guess you won't see my error anyway...