Seems like this XML document is not valid...
Either find out where the dtd file referred in the second row of your XML document is located (appearantly it's not in dev.joomla.org/something), Or...
1. Find the XmlNode corresponding to <page> (i.e., by accessing the first child of the root node)
2. Print the InnerXml / OuterXml properties of this node:...
In that case, FirstOrDefault should return a value of null, and not exception should be thrown.
Maybe the NullPointerException occurs after the FirstOrDefault call, when attempting to access some...
This exception is probably thrown because fieldList contains a null element, i.e., one of the elements of fieldList is null. Therefore, when the program runs your lambda expression on this element,...
Well, You could always temporarily save on disk the image in the wanted format, and then read its content and delete the file:
http://msdn.microsoft.com/en-us/library/twss4wb0%28v=vs.90%29.aspx
Forget a second about JSON - read the content returned by your server(i.e., the content of the stream returned by response.GetResponseStream()). What is its content?
The first thing you need to do is to figure out where the problem is - is in your code, or is it in the input JSON content provided by the server?
What is the JSON content returned by your request?...
There's no magic - the computer can't guess how much time your method will take to run. You need to report as-you-go from within the external method.
For example, if there's a for loop of 10...
You don't need to create the file in advance, just create the file in the code.
In fact, you don't need to do anything different, because the StreamWriter class creates an empty file if the file (in...
There are two options to do that:
1. Define the Ship as a struct (yes, there are structs in C#). By doing that, the line testShip2 = testShip1; will actually copy the content of testShip1 into...