I'm getting the following error: "The following elements are not closed..."

Dec 29, 2007 at 11:13 PM
Hi,

I just started getting this error:

System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: content, post. Line 147, position 1.

thrown here: RecentPosts.cs Line: 44

Line 42: {
Line 43: int number = BlogSettings.Instance.NumberOfRecentPosts;
Line 44: if (number > Post.Posts.Count)
Line 45: number = Post.Posts.Count;
Line 46:


I've also got this same error on another of the .cs code files (I can't remember which, but it was the same type of thing with counting the posts apparently).

Not sure what is causing it. I got this error in version 1.2 and just upgraded to version 1.3 with the same error. I tried restarting the website in IIS and stuff like that, but I always get the same thing. Any ideas?
Feb 21, 2008 at 11:07 PM
I'm suddenly (suddenly meaning I didn't change anything or add any posts) getting the same type of error, where Post or Posts is null:

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 42: {
Line 43: int number = BlogSettings.Instance.NumberOfRecentPosts;
Line 44: if (number > Post.Posts.Count)
Line 45: number = Post.Posts.Count;
Line 46: