This project is read-only.

System.Xml.XmlException: Unexpected end of file has occurred

Topics: ASP.NET 2.0, Controls
Feb 12, 2008 at 5:07 AM
I am using BlogEngine.NET for my blog. Url
Things been good until two days ago I got the exception:
System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: content, comment, comments, post.

I haven't added any entry at the time it went down; but there been some comments posted waiting for approval. So I am guessing its something with the comments.

Any idea how to fix this issue?
Feb 12, 2008 at 2:44 PM
Go to app_data/posts and open latest .xml file (sort it by date modified) in the text editor, notepad will do. Check out comments section - most likely some angle brackets, slashes or other HTML characters got into comment and corrupted XML format. Get rid of them.