Server Error in '/foursquare/places' Application.

This document already has a 'DocumentElement' node.

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.InvalidOperationException: This document already has a 'DocumentElement' node.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: This document already has a 'DocumentElement' node.]
   System.Xml.XmlDocument.IsValidChildType(XmlNodeType type) +5372003
   System.Xml.XmlDocument.AppendChildForLoad(XmlNode newChild, XmlDocument doc) +30
   System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +38
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +133
   System.Xml.XmlDocument.Load(XmlReader reader) +109
   System.Xml.XmlDocument.Load(String filename) +128
   places._Default.Page_Load(Object sender, EventArgs e) in C:\Users\odoyl\Dropbox\work\foursquare\places\places\Default.aspx.cs:30
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0