XML Parsing Error: no element found

Topics: Themes
Nov 4, 2010 at 8:39 PM
Edited Nov 4, 2010 at 8:51 PM

Hi Guys, I'm having trouble with my Settings.aspx page. I've got BE.Net running in a sub- directory on my site (only in my test environment at the moment) but I am having trouble with the above page. I keep getting the following error: XML Parsing Error: no element found Location: http://localhost:50321/Blog/admin/Pages/Settings.aspx Line Number 1, Column 1:

Now, I've not made any changes to the form after I downloaded and extracted it and I have been able to access it before.

I've pasted the code from the .aspx file below.

Thanks in advance,

John

 

**Update- also getting the error on the post page**

 

 

<%@ Page Language="C#" MasterPageFile="~/Blog/themes/Standard/site.master" ValidateRequest="false" AutoEventWireup="true" Inherits="admin_Pages_configuration" Title="Settings" Codebehind="Settings.aspx.cs" %> <%@ Import Namespace="BlogEngine.Core" %> <asp:Content ID="Content1" ContentPlaceHolderID="cphAdmin" runat="Server"> <script type="text/javascript"> function PreviewTheme() { var theme = document.getElementById('<%=ddlTheme.ClientID %>').value; var path = '../../?theme=' + theme; window.open(path); } function geodeAsk() { if (navigator.geolocation) navigator.geolocation.getCurrentPosition(geoFound, geoNotFound); } function geoFound(pos) { document.getElementById('<%=txtGeocodingLatitude.ClientID %>').value = pos.latitude; document.getElementById('<%=txtGeocodingLongitude.ClientID %>').value = pos.longitude; } function geoNotFound() { alert('You must be on a wifi network for us to determine your location'); } </script>

<asp:Button runat="server" ID="btnSaveTop" />

<%=Resources.labels.basic %> <%=Resources.labels.settings.ToLowerInvariant() %>

<label for="<%=txtName.ClientID %>"><%=Resources.labels.name %></label> <asp:TextBox runat="server" ID="txtName" Width="300" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName" ErrorMessage="Required" />
<label for="<%=txtDescription.ClientID %>"><%=Resources.labels.description %></label> <asp:TextBox runat="server" ID="txtDescription" Width="300" />
<label for="<%=txtPostsPerPage.ClientID %>"><%=Resources.labels.postPerPage %></label> <asp:TextBox runat="server" ID="txtPostsPerPage" Width="50" MaxLength="4" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPostsPerPage" ErrorMessage="Required" /> <asp:CompareValidator runat="server" ControlToValidate="txtPostsPerPage" Operator="DataTypeCheck" Type="integer" ErrorMessage="Please enter a valid number" />
<label for="<%=ddlTheme.ClientID %>"><%=Resources.labels.theme %></label> <asp:DropDownList runat="server" ID="ddlTheme" /> Preview | Download
<label for="<%=ddlMobileTheme.ClientID %>"><%=Resources.labels.mobileTheme %></label> <asp:DropDownList runat="server" ID="ddlMobileTheme" />
<label for="<%=cbUseBlogNameInPageTitles.ClientID %>"><%=Resources.labels.useBlogNameInPageTitles%></label> <asp:CheckBox runat="server" ID="cbUseBlogNameInPageTitles" /><%=Resources.labels.useBlogNameInPageTitlesDescription%>
<label for="<%=cbShowRelatedPosts.ClientID %>"><%=Resources.labels.showRelatedPosts %></label> <asp:CheckBox runat="server" ID="cbShowRelatedPosts" />
<label for="<%=cbEnableRating.ClientID %>"><%=Resources.labels.enableRating %></label> <asp:CheckBox runat="server" ID="cbEnableRating" />
<label for="<%=cbShowDescriptionInPostList.ClientID %>"><%=Resources.labels.showDescriptionInPostList %></label> <asp:CheckBox runat="server" ID="cbShowDescriptionInPostList" /> <label for="<%=txtDescriptionCharacters.ClientID %>" style="float:none; position:relative; top:-2px;"><%=Resources.labels.numberOfCharacters %></label> <asp:TextBox runat="server" ID="txtDescriptionCharacters" Width="40" /> <asp:CompareValidator runat="server" ControlToValidate="txtDescriptionCharacters" Type="Integer" Operator="DataTypeCheck" ID="valDescChar" SetFocusOnError="true" />
<label for="<%=cbShowDescriptionInPostListForPostsByTagOrCategory.ClientID %>"><%=Resources.labels.showDescriptionInPostListForPostsByTagOrCategory %></label> <asp:CheckBox runat="server" ID="cbShowDescriptionInPostListForPostsByTagOrCategory" /> <label for="<%=txtDescriptionCharactersForPostsByTagOrCategory.ClientID %>" style="float:none; position:relative; top:-2px;"><%=Resources.labels.numberOfCharacters %></label> <asp:TextBox runat="server" ID="txtDescriptionCharactersForPostsByTagOrCategory" Width="40" /> <asp:CompareValidator runat="server" ControlToValidate="txtDescriptionCharactersForPostsByTagOrCategory" Type="Integer" Operator="DataTypeCheck" SetFocusOnError="true" />

<label for="<%=cbTimeStampPostLinks.ClientID %>"><%=Resources.labels.timeStampPostLinks %></label> <asp:CheckBox runat="server" ID="cbTimeStampPostLinks" />
<label for="<%=cbShowPostNavigation.ClientID %>"><%=Resources.labels.showPostNavigation %></label> <asp:CheckBox runat="server" ID="cbShowPostNavigation" />
<label for="<%=ddlCulture.ClientID %>"><%=Resources.labels.language %></label> <asp:DropDownList runat="Server" ID="ddlCulture" Style="text-transform: capitalize"> <asp:ListItem Text="Auto" /> <asp:ListItem Text="english" Value="en" /> </asp:DropDownList>
<label for="<%=txtTimeZone.ClientID %>"><%=Resources.labels.timezone %></label> <asp:TextBox runat="Server" ID="txtTimeZone" Width="30" /> Server time: <%=DateTime.Now.ToShortTimeString() %> <asp:CompareValidator runat="server" ControlToValidate="txtTimeZone" Operator="dataTypeCheck" Type="double" Display="dynamic" ErrorMessage="Please specify a valid number (positive or negative)" />

<%=Resources.labels.advancedSettings %>

Nov 5, 2010 at 5:49 PM
Thought I'd give a bit of an update, I've changed a line of code in the global.asax file from Server.Transfer to Response.Redirect, so I'm no longer getting the XML error, but I am being taken to the default error page.